public class Exchange extends AbstractExchange
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOW_SPDY |
static String |
ALLOW_TCP |
static String |
ALLOW_WEBSOCKET |
static String |
API_KEY |
static String |
HTTP_SERVLET_REQUEST |
static String |
OAUTH2 |
static String |
SNI_SERVER_NAME |
static String |
SSL_CONTEXT |
static String |
TRACK_NODE_STATUS |
static String |
WS_ORIGINAL_EXCHANGE |
properties, request, rule| Constructor and Description |
|---|
Exchange(AbstractHttpHandler handler) |
Exchange(Exchange original,
AbstractHttpHandler handler)
For HttpResendRunnable
|
addExchangeStoreListener, addExchangeViewerListener, estimateHeapSize, finishExchange, finishExchange, getDestinations, getErrorMessage, getHeapSizeEstimation, getInterceptorStack, getOriginalRequestUri, getProperties, getProperty, getPublicUrl, getRemoteAddr, getRemoteAddrIp, getRequest, getRequestContentLength, getRequestContentType, getResponse, getResponseContentLength, getResponseContentType, getRule, getServer, getStatus, getStringProperty, getTime, getTimeReqReceived, getTimeReqSent, getTimeResReceived, getTimeResSent, informExchangeViewerOnRemoval, isForcedToStop, popInterceptorFromStack, pushInterceptorToStack, received, removeExchangeStoreListener, removeExchangeViewerListener, resetHeapSizeEstimation, setCompleted, setDestinations, setErrorMessage, setForceToStop, setInterceptorStack, setOriginalRequestUri, setProperties, setProperty, setReceived, setRemoteAddr, setRemoteAddrIp, setResponse, setRule, setStatus, setStopped, setTime, setTimeReqReceived, setTimeReqSent, setTimeResReceived, setTimeResSent, toString, updateCopypublic static final String HTTP_SERVLET_REQUEST
public static final String ALLOW_WEBSOCKET
public static final String ALLOW_TCP
public static final String ALLOW_SPDY
public static final String TRACK_NODE_STATUS
public static final String SSL_CONTEXT
public static final String API_KEY
public static final String OAUTH2
public static final String SNI_SERVER_NAME
public static final String WS_ORIGINAL_EXCHANGE
public Exchange(AbstractHttpHandler handler)
public Exchange(Exchange original, AbstractHttpHandler handler)
original - public AbstractHttpHandler getHandler()
public String getOriginalHostHeaderHost()
public void blockRequestIfNeeded()
throws TerminateException
TerminateExceptionpublic void blockResponseIfNeeded()
throws TerminateException
TerminateExceptionpublic void block(Message msg) throws TerminateException
TerminateExceptionpublic String getOriginalHostHeaderPort()
public String getOriginalHostHeader()
public void setOriginalHostHeader(String hostHeader)
public void setRequest(Request req)
setRequest in class AbstractExchangepublic Connection getTargetConnection()
public void setTargetConnection(Connection con)
public void collectStatistics()
public String getRequestURI()
public Outcome echo() throws IOException
IOExceptionpublic void setNodeStatusCode(int tryCounter,
int code)
public void setNodeException(int tryCounter,
Exception e)
public void detach()
AbstractExchangeExchangeStores).detach in class AbstractExchangepublic boolean canKeepConnectionAlive()
public long getId()
getId in class AbstractExchangepublic AbstractExchange createSnapshot() throws Exception
createSnapshot in class AbstractExchangeExceptionpublic void setId(long id)
public int[] getNodeStatusCodes()
public void setNodeStatusCodes(int[] nodeStatusCodes)
public Exception[] getNodeExceptions()
public void setNodeExceptions(Exception[] nodeExceptions)
Copyright © 2019. All Rights Reserved.