|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ucsb.nceas.metacat.HttpMessage
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 |
public java.lang.String contype
Constructor Detail |
public HttpMessage(java.net.URL servlet)
Method Detail |
public static java.lang.String getCookie()
public java.io.InputStream sendGetMessage() throws java.io.IOException
java.io.IOException
public java.io.InputStream sendGetMessage(java.util.Properties args) throws java.io.IOException
java.io.IOException
public java.io.InputStream sendPostMessage() throws java.io.IOException
java.io.IOException
public java.io.InputStream sendPostMessage(java.util.Properties args) throws java.io.IOException
java.io.IOException
public java.lang.String getArgString()
public static void setCookie(java.lang.String newCookie)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |