|
Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.stellent.wcm.common.http.HttpUtils
public abstract class HttpUtils
Class for holding utility methods for working with HTTP
Constructor Summary | |
---|---|
HttpUtils() |
Method Summary | |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
createParametersFromQuery(java.lang.String queryString) Build a map of query name to value from a HTTP query string |
static java.lang.String |
createQueryFromParameters(java.util.Map<java.lang.String,java.lang.String> parameters) Create the query string from the parameters. |
static java.lang.String |
getFileFromDispositionHeader(java.lang.String contentDisposition) Retrieve the file name from the Content-Disposition header. |
static java.lang.String |
getPathFromUrl(java.lang.String url) Retrieve the path from the url |
static java.lang.String |
getQueryFromUrl(java.lang.String url) Retrieve the query from the url |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpUtils()
Method Detail |
---|
public static java.lang.String getPathFromUrl(java.lang.String url)
url
- the url (in the format /some/path?query)public static java.lang.String getQueryFromUrl(java.lang.String url)
url
- the url (in the format /some/path?query)public static java.util.Map<java.lang.String,java.lang.String> createParametersFromQuery(java.lang.String queryString)
queryString
- a URL-encoded query string (param=value¶m2=value2)public static java.lang.String createQueryFromParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters
- a name/value pair mapping of HTTP parameterspublic static java.lang.String getFileFromDispositionHeader(java.lang.String contentDisposition)
contentDisposition
- the content disposition header
|
Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |