Package org.tamacat.httpd.exception

Examples of org.tamacat.httpd.exception.ServiceUnavailableException


    Object loop = context.getAttribute(CHECK_INFINITE_LOOP);
    if (loop == null) {
      context.setAttribute(CHECK_INFINITE_LOOP, Boolean.TRUE);
    } else {
          throw new ServiceUnavailableException("reverseUrl is infinite loop.");
    }
        Socket outsocket = null;
    try {
          ReverseUrl reverseUrl = serviceUrl.getReverseUrl();
          if (reverseUrl == null) {
            throw new ServiceUnavailableException("reverseUrl is null.");
          }
          context.setAttribute("reverseUrl", reverseUrl);
          ReverseUtils.setXForwardedFor(request, context);
          outsocket = socketFactory.createSocket();
         
View Full Code Here


  public ReverseUrl getReverseUrl() {
    ReverseUrl reverseUrl = null;
    synchronized (reverseUrls) {
      int size = reverseUrls.size();
      if (size == 0) {
        throw new ServiceUnavailableException();
      } else if (size == 1) {
        reverseUrl = reverseUrls.get(0);
      } else if (size > 1) {
        if (next >= size) {
          next = 0;
View Full Code Here

         return writer.toString();
      } catch (ResourceNotFoundException e) {
        LOG.trace(e.getMessage());
        throw new NotFoundException(e);
      } catch (Exception e) {
        throw new ServiceUnavailableException(e);
      }
    }
View Full Code Here

TOP

Related Classes of org.tamacat.httpd.exception.ServiceUnavailableException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.