org.dftproject.pgvagent.core.soap
Class HTTPSender
java.lang.Object
org.apache.axis.handlers.BasicHandler
org.dftproject.pgvagent.core.soap.HTTPSender
- All Implemented Interfaces:
- java.io.Serializable, org.apache.axis.Handler
public class HTTPSender
- extends org.apache.axis.handlers.BasicHandler
Modified version of the HTTPSender class from the Axis library. It is
modified to support the setting of the USER_AGENT string.
- See Also:
- Serialized Form
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
| Fields inherited from class org.apache.axis.handlers.BasicHandler |
makeLockable, name, options |
|
Method Summary |
protected void |
getSocket(org.apache.axis.transport.http.SocketHolder sockHolder,
org.apache.axis.MessageContext msgContext,
java.lang.String protocol,
java.lang.String host,
int port,
int timeout,
java.lang.StringBuffer otherHeaders,
org.apache.axis.components.net.BooleanHolder useFullURL)
Creates a socket conn to the SOAP server |
void |
handleCookie(java.lang.String cookieName,
java.lang.String setCookieName,
java.lang.String cookie,
org.apache.axis.MessageContext msgContext)
little helper function for cookies. |
void |
invoke(org.apache.axis.MessageContext msgContext)
invoke creates a socket conn, sends the request SOAP message and then
reads the response SOAP message back from the SOAP server |
| Methods inherited from class org.apache.axis.handlers.BasicHandler |
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
HTTPSender
public HTTPSender()
invoke
public void invoke(org.apache.axis.MessageContext msgContext)
throws org.apache.axis.AxisFault
- invoke creates a socket conn, sends the request SOAP message and then
reads the response SOAP message back from the SOAP server
- Parameters:
msgContext - the messsage context
- Throws:
org.apache.axis.AxisFault
getSocket
protected void getSocket(org.apache.axis.transport.http.SocketHolder sockHolder,
org.apache.axis.MessageContext msgContext,
java.lang.String protocol,
java.lang.String host,
int port,
int timeout,
java.lang.StringBuffer otherHeaders,
org.apache.axis.components.net.BooleanHolder useFullURL)
throws java.lang.Exception
- Creates a socket conn to the SOAP server
- Parameters:
protocol - "http" for standard, "https" for ssl.host - host nameport - port to connect tootherHeaders - buffer for storing additional headers that need to be
sentuseFullURL - flag to indicate if the complete URL has to be sent
- Throws:
java.io.IOException
java.lang.Exception
handleCookie
public void handleCookie(java.lang.String cookieName,
java.lang.String setCookieName,
java.lang.String cookie,
org.apache.axis.MessageContext msgContext)
- little helper function for cookies. fills up the message context with a
string or an array of strings (if there are more than one Set-Cookie)
- Parameters:
cookieName - setCookieName - cookie - msgContext -