|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.soap.transport.http.SOAPHTTPConnection
SOAPHTTPConnection
is an implementation of the SOAPTransport
interface for HTTP.
Constructor Summary | |
SOAPHTTPConnection() |
Method Summary | |
Cookie[] |
getCookies() Gets the cookies. |
Cookie[] |
getCookies2() Gets the cookie2's. |
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. |
java.lang.StringBuffer |
getRequestCopy() Get Buffer containing copy of the request. |
java.lang.StringBuffer |
getResponseCopy() Get Buffer containing copy of the response. |
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 |
setCookies(Cookie[] cookies) Sets the cookies. |
void |
setCookies2(Cookie[] cookies2) Sets the cookie2's. |
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 |
setRequestCopy(java.lang.StringBuffer requestCopy) Set buffer for capturing copy of the request. |
void |
setResponseCopy(java.lang.StringBuffer responseCopy) Set buffer for capturing copy of the response. |
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)
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 setRequestCopy(java.lang.StringBuffer requestCopy)
public void setResponseCopy(java.lang.StringBuffer responseCopy)
public java.lang.StringBuffer getRequestCopy()
public java.lang.StringBuffer getResponseCopy()
public void setMaintainSession(boolean maintainSession)
public boolean getMaintainSession()
public Cookie[] getCookies()
public void setCookies(Cookie[] cookies)
cookies
- The cookies.public Cookie[] getCookies2()
public void setCookies2(Cookie[] cookies2)
cookies2
- The cookie2's.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 SOAPContextSOAPException
- 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
|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |