Class Transport
java.lang.Object
com.predic8.membrane.core.transport.Transport
- Direct Known Subclasses:
HttpTransport
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseAll()voidcloseAll(boolean waitForCompletion) intgetOpenBackendConnections(int port) voidabstract booleanbooleanbooleanvoidopenPort(String ip, int port, SSLProvider sslProvider, TimerManager timerManager) voidsetConcurrentConnectionLimitPerIp(int concurrentConnectionLimitPerIp) voidsetInterceptors(List<Interceptor> interceptors) voidsetPrintStackTrace(boolean printStackTrace) voidsetReverseDNS(boolean reverseDNS)
-
Field Details
-
Constructor Details
-
Transport
public Transport()
-
-
Method Details
-
getOpenBackendConnections
-
getInterceptors
-
setInterceptors
-
init
- Throws:
Exception
-
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
- Throws:
IOException
-
closeAll
- 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
-