org.apache.soap.transport
Class FilterTransport
java.lang.Object
|
+--org.apache.soap.transport.FilterTransport
- public class FilterTransport
- extends java.lang.Object
- implements SOAPTransport
SOAPHTTPConnection
is an implementation of the
SOAPTransport
interface for HTTP.
- Author:
- Ryo Neyama (neyama@jp.ibm.com)
Method Summary |
java.util.Hashtable |
getHeaders()
Return access to headers generated by the protocol. |
SOAPContext |
getResponseSOAPContext()
Return the SOAPContext associated with the response. |
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FilterTransport
public FilterTransport(EnvelopeEditor editor,
SOAPTransport transport)
send
public void send(java.net.URL sendTo,
java.lang.String action,
java.util.Hashtable headers,
Envelope env,
SOAPMappingRegistry smr,
SOAPContext ctx)
throws SOAPException
- This method is used to request that an envelope be posted to the
given URL. The response (if any) must be gotten by calling the
receive() function.
- Specified by:
- send in interface SOAPTransport
- Parameters:
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- Throws:
- SOAPException - with appropriate reason code if problem
receive
public java.io.BufferedReader receive()
- Return a buffered reader to receive back the response to whatever
was sent to whatever.
- Specified by:
- receive in interface SOAPTransport
- Returns:
- a reader to read the results from or null if that's not
possible.
getHeaders
public java.util.Hashtable getHeaders()
- Return access to headers generated by the protocol.
- Specified by:
- getHeaders in interface SOAPTransport
- Returns:
- a hashtable containing all the headers
getResponseSOAPContext
public SOAPContext getResponseSOAPContext()
- Return the SOAPContext associated with the response.
- Specified by:
- getResponseSOAPContext in interface SOAPTransport
- Returns:
- response SOAPContext
Copyright © 2001 Apache XML Project. All Rights Reserved.