org.jasig.portlet.calendar.adapter.exchange
Class CommonsHttpConnection
java.lang.Object
org.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractSenderConnection
org.springframework.ws.transport.http.AbstractHttpSenderConnection
org.jasig.portlet.calendar.adapter.exchange.CommonsHttpConnection
- All Implemented Interfaces:
- org.springframework.ws.transport.FaultAwareWebServiceConnection, org.springframework.ws.transport.WebServiceConnection
public class CommonsHttpConnection
- extends org.springframework.ws.transport.http.AbstractHttpSenderConnection
Copy of Spring's CommonsHttpConenction. This class has been copied into the
local source code base due to a protected constructor in the original
implementation.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
|
Constructor Summary |
CommonsHttpConnection(org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.methods.PostMethod postMethod)
|
| Methods inherited from class org.springframework.ws.transport.http.AbstractHttpSenderConnection |
getErrorMessage, getResponseInputStream, hasError, hasFault, hasResponse, setFault |
| Methods inherited from class org.springframework.ws.transport.AbstractSenderConnection |
createTransportInputStream, createTransportOutputStream |
| Methods inherited from class org.springframework.ws.transport.AbstractWebServiceConnection |
close, onReceiveAfterRead, onReceiveBeforeRead, receive, send |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.ws.transport.WebServiceConnection |
close, receive, send |
CommonsHttpConnection
public CommonsHttpConnection(org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.methods.PostMethod postMethod)
getPostMethod
public org.apache.commons.httpclient.methods.PostMethod getPostMethod()
onClose
public void onClose()
throws IOException
- Overrides:
onClose in class org.springframework.ws.transport.AbstractSenderConnection
- Throws:
IOException
getUri
public URI getUri()
throws URISyntaxException
- Throws:
URISyntaxException
onSendBeforeWrite
protected void onSendBeforeWrite(org.springframework.ws.WebServiceMessage message)
throws IOException
- Overrides:
onSendBeforeWrite in class org.springframework.ws.transport.AbstractWebServiceConnection
- Throws:
IOException
addRequestHeader
protected void addRequestHeader(String name,
String value)
throws IOException
- Specified by:
addRequestHeader in class org.springframework.ws.transport.AbstractSenderConnection
- Throws:
IOException
getRequestOutputStream
protected OutputStream getRequestOutputStream()
throws IOException
- Specified by:
getRequestOutputStream in class org.springframework.ws.transport.AbstractSenderConnection
- Throws:
IOException
onSendAfterWrite
protected void onSendAfterWrite(org.springframework.ws.WebServiceMessage message)
throws IOException
- Overrides:
onSendAfterWrite in class org.springframework.ws.transport.AbstractWebServiceConnection
- Throws:
IOException
getResponseCode
protected int getResponseCode()
throws IOException
- Specified by:
getResponseCode in class org.springframework.ws.transport.http.AbstractHttpSenderConnection
- Throws:
IOException
getResponseMessage
protected String getResponseMessage()
throws IOException
- Specified by:
getResponseMessage in class org.springframework.ws.transport.http.AbstractHttpSenderConnection
- Throws:
IOException
getResponseContentLength
protected long getResponseContentLength()
throws IOException
- Specified by:
getResponseContentLength in class org.springframework.ws.transport.http.AbstractHttpSenderConnection
- Throws:
IOException
getRawResponseInputStream
protected InputStream getRawResponseInputStream()
throws IOException
- Specified by:
getRawResponseInputStream in class org.springframework.ws.transport.http.AbstractHttpSenderConnection
- Throws:
IOException
getResponseHeaderNames
protected Iterator getResponseHeaderNames()
throws IOException
- Specified by:
getResponseHeaderNames in class org.springframework.ws.transport.AbstractSenderConnection
- Throws:
IOException
getResponseHeaders
protected Iterator getResponseHeaders(String name)
throws IOException
- Specified by:
getResponseHeaders in class org.springframework.ws.transport.AbstractSenderConnection
- Throws:
IOException
Copyright © 2012 Jasig. All Rights Reserved.