org.apache.soap.util.net
Class HTTPUtils

java.lang.Object
  |
  +--org.apache.soap.util.net.HTTPUtils

public class HTTPUtils
extends java.lang.Object

A bunch of utility stuff for doing HTTP things.

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

Inner Class Summary
static class HTTPUtils.Response
          An instance of this class is returned by post.
 
Constructor Summary
HTTPUtils()
           
 
Method Summary
static HTTPUtils.Response post(java.net.URL url, java.util.Hashtable headers, java.lang.String contentType, java.lang.String content, int timeout)
          POST something to the given URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPUtils

public HTTPUtils()
Method Detail

post

public static HTTPUtils.Response post(java.net.URL url,
                                      java.util.Hashtable headers,
                                      java.lang.String contentType,
                                      java.lang.String content,
                                      int timeout)
                               throws java.lang.IllegalArgumentException
POST something to the given URL. The headers are put in as HTTP headers, the content length is calculated and the content is sent as content. Duh.
Parameters:
url - the url to post to
headers - additional headers to send as HTTP headers
contentType - type of the content
content - the body of the post


Copyright © 2001 Oracle SOAP. All Rights Reserved.