public class HTTPSender extends BasicHandler
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
makeLockable, name, options
Constructor and Description |
---|
HTTPSender() |
Modifier and Type | Method and Description |
---|---|
protected void |
getSocket(SocketHolder sockHolder,
MessageContext msgContext,
String protocol,
String host,
int port,
int timeout,
StringBuffer otherHeaders,
BooleanHolder useFullURL)
Creates a socket connection to the SOAP server
|
void |
handleCookie(String cookieName,
String setCookieName,
String cookie,
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)
|
void |
invoke(MessageContext msgContext)
invoke creates a socket connection, sends the request SOAP message and then
reads the response SOAP message back from the SOAP server
|
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
public void invoke(MessageContext msgContext) throws AxisFault
msgContext
- the messsage contextAxisFault
protected void getSocket(SocketHolder sockHolder, MessageContext msgContext, String protocol, String host, int port, int timeout, StringBuffer otherHeaders, BooleanHolder useFullURL) throws Exception
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 sentIOException
Exception
public void handleCookie(String cookieName, String setCookieName, String cookie, MessageContext msgContext)
cookieName
- setCookieName
- cookie
- msgContext
- Copyright © The Apache Software Foundation. All Rights Reserved.