public class Exchange extends AbstractExchange
properties, request, rule
Constructor and Description |
---|
Exchange(AbstractHttpHandler handler) |
Exchange(Exchange original,
AbstractHttpHandler handler)
For HttpResendRunnable
|
Modifier and Type | Method and Description |
---|---|
void |
block(Message msg) |
void |
blockRequestIfNeeded() |
void |
blockResponseIfNeeded() |
void |
collectStatistics() |
Outcome |
echo() |
AbstractHttpHandler |
getHandler() |
String |
getOriginalHostHeaderHost() |
String |
getOriginalHostHeaderPort() |
String |
getRequestURI() |
ServiceProxyKey |
getServiceProxyKey() |
Connection |
getTargetConnection() |
void |
setOriginalHostHeader(String hostHeader) |
void |
setRequest(Request req) |
void |
setTargetConnection(Connection con) |
addExchangeStoreListener, addExchangeViewerListener, finishExchange, finishExchange, getDestinations, getErrorMessage, getOriginalRequestUri, getProperty, getRequest, getRequestContentLength, getRequestContentType, getResponse, getResponseContentLength, getResponseContentType, getRule, getServer, getSourceHostname, getSourceIp, getStatus, getStringProperty, getTime, getTimeReqReceived, getTimeReqSent, getTimeResReceived, getTimeResSent, informExchangeViewerOnRemoval, isForcedToStop, popInterceptorFromStack, pushInterceptorToStack, received, removeExchangeStoreListener, removeExchangeViewerListener, setCompleted, setErrorMessage, setOriginalRequestUri, setProperty, setReceived, setResponse, setRule, setSourceHostname, setSourceIp, setStopped, setTime, setTimeReqReceived, setTimeReqSent, setTimeResReceived, setTimeResSent, toString
public Exchange(AbstractHttpHandler handler)
public Exchange(Exchange original, AbstractHttpHandler handler)
original
- public AbstractHttpHandler getHandler()
public String getOriginalHostHeaderHost()
public void blockRequestIfNeeded() throws TerminateException
TerminateException
public void blockResponseIfNeeded() throws TerminateException
TerminateException
public void block(Message msg) throws TerminateException
TerminateException
public String getOriginalHostHeaderPort()
public void setOriginalHostHeader(String hostHeader)
public void setRequest(Request req)
setRequest
in class AbstractExchange
public ServiceProxyKey getServiceProxyKey()
public Connection getTargetConnection()
public void setTargetConnection(Connection con)
public void collectStatistics()
public String getRequestURI() throws MalformedURLException
MalformedURLException
public Outcome echo() throws IOException
IOException
Copyright © 2012. All Rights Reserved.