public class HttpClientTransport extends HttpTransportSupport
Transport which uses the
Apache HTTP Client
library| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canSendCompressed |
static int |
MAX_CLIENT_TIMEOUT |
| Constructor and Description |
|---|
HttpClientTransport(TextWireFormat wireFormat,
URI remoteUrl) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.activemq.transport.FutureResponse |
asyncRequest(Object command) |
protected void |
configureMethod(org.apache.http.message.AbstractHttpMessage method) |
protected HttpClientConnectionManager |
createClientConnectionManager() |
protected HttpClient |
createHttpClient() |
protected void |
doStart() |
protected void |
doStop(org.apache.activemq.util.ServiceStopper stopper) |
int |
getMinSendAsCompressedSize() |
X509Certificate[] |
getPeerCertificates() |
int |
getReceiveCounter() |
HttpClient |
getReceiveHttpClient() |
HttpClient |
getSendHttpClient() |
int |
getSoTimeout() |
protected String |
getSystemPropertyPrefix() |
org.apache.activemq.wireformat.WireFormat |
getWireFormat() |
boolean |
isTrace() |
boolean |
isUseCompression() |
void |
oneway(Object command) |
Object |
request(Object command) |
void |
run() |
void |
setMinSendAsCompressedSize(int minSendAsCompressedSize)
Sets the minimum size that must be exceeded on a send before compression is used if
the useCompression option is specified.
|
void |
setPeerCertificates(X509Certificate[] certificates) |
void |
setReceiveHttpClient(HttpClient receiveHttpClient) |
void |
setSendHttpClient(HttpClient sendHttpClient) |
void |
setSoTimeout(int soTimeout) |
void |
setTrace(boolean trace) |
void |
setUseCompression(boolean useCompression) |
getProxyHost, getProxyPassword, getProxyPort, getProxyUser, getRemoteAddress, getRemoteUrl, getTextWireFormat, setProxyHost, setProxyPassword, setProxyPort, setProxyUser, setTextWireFormat, toStringgetStackSize, isDaemon, setDaemon, setStackSizeasyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, setTransportListener, updateURIsaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stoppublic static final int MAX_CLIENT_TIMEOUT
protected boolean canSendCompressed
public HttpClientTransport(TextWireFormat wireFormat, URI remoteUrl)
public org.apache.activemq.transport.FutureResponse asyncRequest(Object command) throws IOException
IOExceptionpublic void oneway(Object command) throws IOException
IOExceptionpublic Object request(Object command) throws IOException
request in interface org.apache.activemq.transport.Transportrequest in class org.apache.activemq.transport.TransportSupportIOExceptionpublic void run()
public HttpClient getSendHttpClient()
public void setSendHttpClient(HttpClient sendHttpClient)
public HttpClient getReceiveHttpClient()
public void setReceiveHttpClient(HttpClient receiveHttpClient)
protected void doStart() throws Exception
doStart in class org.apache.activemq.transport.TransportThreadSupportExceptionprotected void doStop(org.apache.activemq.util.ServiceStopper stopper) throws Exception
doStop in class org.apache.activemq.util.ServiceSupportExceptionprotected HttpClient createHttpClient()
protected HttpClientConnectionManager createClientConnectionManager()
protected void configureMethod(org.apache.http.message.AbstractHttpMessage method)
public boolean isTrace()
public void setTrace(boolean trace)
public int getReceiveCounter()
public int getSoTimeout()
public void setSoTimeout(int soTimeout)
public void setUseCompression(boolean useCompression)
public boolean isUseCompression()
public int getMinSendAsCompressedSize()
public void setMinSendAsCompressedSize(int minSendAsCompressedSize)
minSendAsCompressedSize - public X509Certificate[] getPeerCertificates()
public void setPeerCertificates(X509Certificate[] certificates)
public org.apache.activemq.wireformat.WireFormat getWireFormat()
protected String getSystemPropertyPrefix()
getSystemPropertyPrefix in class HttpTransportSupportCopyright © 2005–2019 The Apache Software Foundation. All rights reserved.