com.alibaba.dubbo.rpc.protocol.hessian
Class HttpClientConnection

java.lang.Object
  extended by com.alibaba.dubbo.rpc.protocol.hessian.HttpClientConnection
All Implemented Interfaces:
com.caucho.hessian.client.HessianConnection

public class HttpClientConnection
extends Object
implements com.caucho.hessian.client.HessianConnection

HttpClientConnection

Author:
william.liangf

Constructor Summary
HttpClientConnection(org.apache.http.client.HttpClient httpClient, URL url)
           
 
Method Summary
 void addHeader(String key, String value)
           
 void close()
           
 void destroy()
           
 String getContentEncoding()
           
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 int getStatusCode()
           
 String getStatusMessage()
           
 void sendRequest()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientConnection

public HttpClientConnection(org.apache.http.client.HttpClient httpClient,
                            URL url)
Method Detail

addHeader

public void addHeader(String key,
                      String value)
Specified by:
addHeader in interface com.caucho.hessian.client.HessianConnection

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Specified by:
getOutputStream in interface com.caucho.hessian.client.HessianConnection
Throws:
IOException

sendRequest

public void sendRequest()
                 throws IOException
Specified by:
sendRequest in interface com.caucho.hessian.client.HessianConnection
Throws:
IOException

getStatusCode

public int getStatusCode()
Specified by:
getStatusCode in interface com.caucho.hessian.client.HessianConnection

getStatusMessage

public String getStatusMessage()
Specified by:
getStatusMessage in interface com.caucho.hessian.client.HessianConnection

getContentEncoding

public String getContentEncoding()
Specified by:
getContentEncoding in interface com.caucho.hessian.client.HessianConnection

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface com.caucho.hessian.client.HessianConnection
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface com.caucho.hessian.client.HessianConnection
Throws:
IOException

destroy

public void destroy()
             throws IOException
Specified by:
destroy in interface com.caucho.hessian.client.HessianConnection
Throws:
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.