org.apache.soap.transport.http
Class SOAPHTTPConnection

java.lang.Object
  |
  +--org.apache.soap.transport.http.SOAPHTTPConnection

public class SOAPHTTPConnection
extends java.lang.Object
implements SOAPTransport

SOAPHTTPConnection is an implementation of the SOAPTransport interface for HTTP.

Author:
Matthew J. Duftler (duftler@us.ibm.com), Sanjiva Weerawarana (sanjiva@watson.ibm.com)

Constructor Summary
SOAPHTTPConnection()
           
 
Method Summary
 java.util.Hashtable getHeaders()
          Return access to headers generated by the protocol.
 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)
          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
 

Constructor Detail

SOAPHTTPConnection

public SOAPHTTPConnection()
Method Detail

send

public void send(java.net.URL sendTo,
                 java.lang.String action,
                 java.util.Hashtable headers,
                 Envelope env,
                 SOAPMappingRegistry smr)
          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 to
action - the SOAPAction header field value
headers - any other header fields to go to as protocol headers
env - the envelope to send
smr - the XML<->Java type mapping registry (passed on)
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


Copyright © 2000 Apache XML Project. All Rights Reserved.