com.filenet.wcm.apps.server.util.integration

Class WcmHTTPSUtil

  1. java.lang.Object
  2. extended bycom.filenet.wcm.apps.server.util.integration.WcmHTTPSUtil

  1. public class WcmHTTPSUtil
  2. extends java.lang.Object
WcmHTTPUtil contains static utility methods related to HTTP.

Method Summary

Modifier and Type Method and Description
  1. static
  2. java.util.Hashtable
parseQueryString(java.lang.String s)
Parses the URL query string into a Hashtable.
  1. static
  2. java.lang.String
sendHTTPSCredentialsRequest(java.lang.String url)
  1. static
  2. java.lang.String
sendHTTPSCredentialsRequest(java.lang.String url,javax.servlet.http.Cookie[] cookies)
Perform a POST request based on the specified URL string.
  1. static
  2. java.lang.String
sendHTTPSRequest(java.lang.String url)
Deprecated. It's not recommended to use this method if you response might have any non-ascii characters. Use sendHTTPSRequestUTF8 method instead
  1. static
  2. java.lang.String
sendHTTPSRequestUTF8(java.lang.String url)
Perform a POST request based on the specified URL string.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

sendHTTPSRequestUTF8

  1. public static java.lang.String sendHTTPSRequestUTF8( java.lang.String url)
  2. throws java.lang.Exception
Perform a POST request based on the specified URL string. Uses UTF-8 to convert the inputstream from the response to String.
Parameters:
url - The URL with GET-style request parameters. The request parameters are broken off and POSTed to the server.
Returns:
tring the the content of the url
Throws:
java.lang.Exception

sendHTTPSRequest

  1. public static java.lang.String sendHTTPSRequest( java.lang.String url)
  2. throws java.lang.Exception
Deprecated. It's not recommended to use this method if you response might have any non-ascii characters. Use sendHTTPSRequestUTF8 method instead
Perform a POST request based on the specified URL string. Uses default encoding to convert the inputstream from the response to String.
Parameters:
url - The URL with GET-style request parameters. The request parameters are broken off and POSTed to the server.
Returns:
String the the content of the url
Throws:
java.lang.Exception

sendHTTPSCredentialsRequest

  1. public static java.lang.String sendHTTPSCredentialsRequest( java.lang.String url)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

sendHTTPSCredentialsRequest

  1. public static java.lang.String sendHTTPSCredentialsRequest( java.lang.String url,
  2. javax.servlet.http.Cookie[] cookies)
  3. throws java.lang.Exception
Perform a POST request based on the specified URL string.
Parameters:
url - The URL with GET-style request parameters. The request parameters are broken off and POSTed to the server.
Returns:
Returns null if all went well. Returns a non-null String error message if there was a problem.
Throws:
com.filenet.wcm.toolkit.util.WcmException - toolkit.WcmHTTPUtil.credentialsServletError
java.lang.Exception

parseQueryString

  1. public static java.util.Hashtable parseQueryString( java.lang.String s)
Parses the URL query string into a Hashtable.
Parameters:
s - The query string in the format "key=value&key=value...".
Returns:
A Hashtable instance containing the request parameter/values.
Throws:
java.lang.IllegalArgumentException