Class Transport

java.lang.Object
com.predic8.membrane.core.transport.Transport
Direct Known Subclasses:
HttpTransport

public abstract class Transport extends Object
  • Field Details

  • Constructor Details

    • Transport

      public Transport()
  • Method Details

    • getOpenBackendConnections

      public String getOpenBackendConnections(int port)
    • getInterceptors

      public List<Interceptor> getInterceptors()
    • setInterceptors

      public void setInterceptors(List<Interceptor> interceptors)
    • init

      public void init(Router router) throws Exception
      Throws:
      Exception
    • getRouter

      public Router getRouter()
    • isPrintStackTrace

      public boolean isPrintStackTrace()
    • setPrintStackTrace

      public void setPrintStackTrace(boolean printStackTrace)
      Default
      false
      Description
      Whether the stack traces of exceptions thrown by interceptors should be returned in the HTTP response.
    • closeAll

      public void closeAll() throws IOException
      Throws:
      IOException
    • closeAll

      public void closeAll(boolean waitForCompletion) throws IOException
      Throws:
      IOException
    • openPort

      public void openPort(String ip, int port, SSLProvider sslProvider, TimerManager timerManager) throws IOException
      Throws:
      IOException
    • isOpeningPorts

      public abstract boolean isOpeningPorts()
    • isReverseDNS

      public boolean isReverseDNS()
    • setReverseDNS

      public void setReverseDNS(boolean reverseDNS)
      Default
      true
      Description
      Whether the remote address should automatically reverse-looked up for incoming connections.
    • getConcurrentConnectionLimitPerIp

      public int getConcurrentConnectionLimitPerIp()
    • setConcurrentConnectionLimitPerIp

      public void setConcurrentConnectionLimitPerIp(int concurrentConnectionLimitPerIp)
      Default
      -1 No Limit
      Description
      Limits the number of concurrent connections from one ip