|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.WcmHTTPUtil
WcmHTTPUtil contains static utility methods related to HTTP.
Method Summary | |
static java.util.Hashtable |
parseQueryString(java.lang.String s)
Parses the URL query string into a Hashtable. |
static java.lang.String |
sendHTTPCredentialsRequest(java.lang.String url)
|
static java.lang.String |
sendHTTPCredentialsRequest(java.lang.String url,
javax.servlet.http.Cookie[] cookies)
Perform a POST request based on the specified URL string. |
static java.lang.String |
sendHTTPRequest(java.lang.String url)
Deprecated. It's not recommended to use this method if you response might have any non-ascii characters. Use sendHTTPRequestUTF8 method instead |
static java.lang.String |
sendHTTPRequestUTF8(java.lang.String url)
Perform a POST request based on the specified URL string. |
static java.lang.String |
sendHTTPRequestUTF8(java.lang.String url,
java.lang.String cookie)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String sendHTTPRequestUTF8(java.lang.String url) throws java.lang.Exception
url
- The URL with GET-style request parameters. The request parameters are broken off and
POSTed to the server.
java.lang.Exception
public static java.lang.String sendHTTPRequestUTF8(java.lang.String url, java.lang.String cookie) throws java.lang.Exception
java.lang.Exception
public static java.lang.String sendHTTPRequest(java.lang.String url) throws java.lang.Exception
url
- The URL with GET-style request parameters. The request parameters are broken off and
POSTed to the server.
java.lang.Exception
public static java.lang.String sendHTTPCredentialsRequest(java.lang.String url) throws java.lang.Exception
java.lang.Exception
public static java.lang.String sendHTTPCredentialsRequest(java.lang.String url, javax.servlet.http.Cookie[] cookies) throws java.lang.Exception
url
- The URL with GET-style request parameters. The request parameters are broken off and
POSTed to the server.
WcmException
- toolkit.WcmHTTPUtil.credentialsServletError
java.lang.Exception
public static java.util.Hashtable parseQueryString(java.lang.String s)
s
- The query string in the format "key=value&key=value...".
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |