com.alibaba.dubbo.rpc.protocol.hessian
Class HttpClientConnection
java.lang.Object
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
HttpClientConnection
public HttpClientConnection(org.apache.http.client.HttpClient httpClient,
URL url)
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.