Class HttpClientTransport

    • Field Detail

      • canSendCompressed

        protected boolean canSendCompressed
    • Constructor Detail

      • HttpClientTransport

        public HttpClientTransport​(TextWireFormat wireFormat,
                                   URI remoteUrl)
    • Method Detail

      • asyncRequest

        public org.apache.activemq.transport.FutureResponse asyncRequest​(Object command)
                                                                  throws IOException
        Throws:
        IOException
      • request

        public Object request​(Object command)
                       throws IOException
        Specified by:
        request in interface org.apache.activemq.transport.Transport
        Overrides:
        request in class org.apache.activemq.transport.TransportSupport
        Throws:
        IOException
      • run

        public void run()
      • getSendHttpClient

        public org.apache.http.client.HttpClient getSendHttpClient()
      • setSendHttpClient

        public void setSendHttpClient​(org.apache.http.client.HttpClient sendHttpClient)
      • getReceiveHttpClient

        public org.apache.http.client.HttpClient getReceiveHttpClient()
      • setReceiveHttpClient

        public void setReceiveHttpClient​(org.apache.http.client.HttpClient receiveHttpClient)
      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.activemq.transport.TransportThreadSupport
        Throws:
        Exception
      • createHttpClient

        protected org.apache.http.client.HttpClient createHttpClient()
      • createClientConnectionManager

        protected org.apache.http.conn.HttpClientConnectionManager createClientConnectionManager()
      • configureMethod

        protected void configureMethod​(org.apache.http.message.AbstractHttpMessage method)
      • isTrace

        public boolean isTrace()
      • setTrace

        public void setTrace​(boolean trace)
      • getReceiveCounter

        public int getReceiveCounter()
      • getSoTimeout

        public int getSoTimeout()
      • setSoTimeout

        public void setSoTimeout​(int soTimeout)
      • setUseCompression

        public void setUseCompression​(boolean useCompression)
      • isUseCompression

        public boolean isUseCompression()
      • getMinSendAsCompressedSize

        public int getMinSendAsCompressedSize()
      • setMinSendAsCompressedSize

        public 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. For very small payloads compression can be inefficient compared to the transmission size savings. Default value is 0.
        Parameters:
        minSendAsCompressedSize -
      • setPeerCertificates

        public void setPeerCertificates​(X509Certificate[] certificates)
      • getWireFormat

        public org.apache.activemq.wireformat.WireFormat getWireFormat()