org.jasig.portlet.calendar.adapter.exchange
Class CommonsHttpConnection

java.lang.Object
  extended by org.springframework.ws.transport.AbstractWebServiceConnection
      extended by org.springframework.ws.transport.AbstractSenderConnection
          extended by org.springframework.ws.transport.http.AbstractHttpSenderConnection
              extended by 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)
           
 
Method Summary
protected  void addRequestHeader(String name, String value)
           
 org.apache.commons.httpclient.methods.PostMethod getPostMethod()
           
protected  InputStream getRawResponseInputStream()
           
protected  OutputStream getRequestOutputStream()
           
protected  int getResponseCode()
           
protected  long getResponseContentLength()
           
protected  Iterator getResponseHeaderNames()
           
protected  Iterator getResponseHeaders(String name)
           
protected  String getResponseMessage()
           
 URI getUri()
           
 void onClose()
           
protected  void onSendAfterWrite(org.springframework.ws.WebServiceMessage message)
           
protected  void onSendBeforeWrite(org.springframework.ws.WebServiceMessage message)
           
 
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
 

Constructor Detail

CommonsHttpConnection

public CommonsHttpConnection(org.apache.commons.httpclient.HttpClient httpClient,
                             org.apache.commons.httpclient.methods.PostMethod postMethod)
Method Detail

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.