|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.soap.transport.http.SOAPHTTPConnection
public class SOAPHTTPConnection
SOAPHTTPConnection
is an implementation of the
SOAPTransport
interface for HTTP.
Constructor Summary | |
---|---|
SOAPHTTPConnection()
|
Method Summary | |
---|---|
java.util.Hashtable |
getHeaders()
Return access to headers generated by the protocol. |
boolean |
getMaintainSession()
Return session maintanence status. |
int |
getOutputBufferSize()
Gets the output buffer size (in bytes). |
java.lang.String |
getProxyHost()
Get HTTP proxy host. |
int |
getProxyPort()
Get HTTP proxy port. |
SOAPContext |
getResponseSOAPContext()
Return the SOAPContext associated with the response. |
java.lang.Boolean |
getTcpNoDelay()
Get the TCPNoDelay setting. |
int |
getTimeout()
Get the HTTP read timeout. |
java.io.BufferedReader |
receive()
Return a buffered reader to receive back the response to whatever was sent to whatever. |
void |
send(java.net.URL sendTo,
java.lang.String action,
java.util.Hashtable headers,
Envelope env,
SOAPMappingRegistry smr,
SOAPContext ctx)
This method is used to request that an envelope be posted to the given URL. |
void |
setMaintainSession(boolean maintainSession)
Indicate whether to maintain HTTP sessions. |
void |
setOutputBufferSize(int sz)
Sets the output buffer size (in bytes). |
void |
setPassword(java.lang.String password)
Set the password for HTTP Basic authentication. |
void |
setProxyHost(java.lang.String host)
Set HTTP proxy host. |
void |
setProxyPassword(java.lang.String password)
Set the password for HTTP proxy basic authentication. |
void |
setProxyPort(int port)
Set HTTP proxy port. |
void |
setProxyUserName(java.lang.String userName)
Set the username for HTTP proxy basic authentication. |
void |
setTcpNoDelay(java.lang.Boolean nodelay)
Set the TCPNoDelay setting. |
void |
setTimeout(int timeout)
Set the HTTP read timeout. |
void |
setUserName(java.lang.String userName)
Set the username for HTTP Basic authentication. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SOAPHTTPConnection()
Method Detail |
---|
public void setProxyHost(java.lang.String host)
host
- the HTTP proxy host or null if no proxy.public void setProxyPort(int port)
host
- the HTTP proxy port.public java.lang.String getProxyHost()
public int getProxyPort()
public void setUserName(java.lang.String userName)
public void setPassword(java.lang.String password)
public void setProxyUserName(java.lang.String userName)
public void setProxyPassword(java.lang.String password)
public void setMaintainSession(boolean maintainSession)
public boolean getMaintainSession()
public void setTimeout(int timeout)
timeout
- the amount of time, in ms, to block on reading data.
A zero value indicates an infinite timeout.public int getTimeout()
public void setOutputBufferSize(int sz)
sz
- The output buffer size (in bytes).public int getOutputBufferSize()
public java.lang.Boolean getTcpNoDelay()
public void setTcpNoDelay(java.lang.Boolean nodelay)
public void send(java.net.URL sendTo, java.lang.String action, java.util.Hashtable headers, Envelope env, SOAPMappingRegistry smr, SOAPContext ctx) throws SOAPException
send
in interface SOAPTransport
sendTo
- the URL to send the envelope toaction
- the SOAPAction header field valueheaders
- any other header fields to go to as protocol headersenv
- the envelope to sendsmr
- the XML<->Java type mapping registry (passed on)ctx
- the request SOAPContext
SOAPException
- with appropriate reason code if problempublic java.io.BufferedReader receive()
receive
in interface SOAPTransport
public java.util.Hashtable getHeaders()
getHeaders
in interface SOAPTransport
public SOAPContext getResponseSOAPContext()
getResponseSOAPContext
in interface SOAPTransport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |