edu.ucsb.nceas.metacat
Class HttpMessage

java.lang.Object
  |
  +--edu.ucsb.nceas.metacat.HttpMessage

public class HttpMessage
extends java.lang.Object

Send a message to an HTTP server using either a GET or POST operation


Field Summary
 java.lang.String contype
           
 
Constructor Summary
HttpMessage(java.net.URL servlet)
           
 
Method Summary
 java.lang.String getArgString()
          Returns the urls argument strings
static java.lang.String getCookie()
          return the cookie that this message object contains
 java.io.InputStream sendGetMessage()
          Performs a GET request to the previously given servlet with no query string
 java.io.InputStream sendGetMessage(java.util.Properties args)
          Performs a GET request to the previously given servlet Builds a query string from the supplied Properties list.
 java.io.InputStream sendPostMessage()
          Performs a POST request to the previously given servlet with no query string
 java.io.InputStream sendPostMessage(java.util.Properties args)
          Builds post data from the supplied properties list
static void setCookie(java.lang.String newCookie)
          return the cookie that this message object contains
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contype

public java.lang.String contype
Constructor Detail

HttpMessage

public HttpMessage(java.net.URL servlet)
Method Detail

getCookie

public static java.lang.String getCookie()
return the cookie that this message object contains

sendGetMessage

public java.io.InputStream sendGetMessage()
                                   throws java.io.IOException
Performs a GET request to the previously given servlet with no query string

sendGetMessage

public java.io.InputStream sendGetMessage(java.util.Properties args)
                                   throws java.io.IOException
Performs a GET request to the previously given servlet Builds a query string from the supplied Properties list.

sendPostMessage

public java.io.InputStream sendPostMessage()
                                    throws java.io.IOException
Performs a POST request to the previously given servlet with no query string

sendPostMessage

public java.io.InputStream sendPostMessage(java.util.Properties args)
                                    throws java.io.IOException
Builds post data from the supplied properties list

getArgString

public java.lang.String getArgString()
Returns the urls argument strings

setCookie

public static void setCookie(java.lang.String newCookie)
return the cookie that this message object contains


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.