|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.enterprise.WebUtils
public class WebUtils
Constructor Summary | |
---|---|
WebUtils()
|
Method Summary | |
---|---|
static org.apache.commons.httpclient.HttpClient |
enableProxyUsage(org.apache.commons.httpclient.HttpClient client,
java.net.URL url)
reads proxyHost and proxyPort from system parameters and sets them to the passed HttpClient instance |
static java.lang.String |
getAbsoluteContextPath(javax.servlet.http.HttpServletRequest request)
returns the root path (address - port - context) of a web application read from the passed request e.g. http://myserver:8080/deegree/services? |
static java.lang.String |
readCharsetFromContentType(javax.servlet.http.HttpServletRequest request)
returns the charset read from the content type of the passed HttpServletRequest . |
static java.lang.String |
readCharsetFromContentType(java.lang.String contentType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebUtils()
Method Detail |
---|
public static java.lang.String getAbsoluteContextPath(javax.servlet.http.HttpServletRequest request)
request
-
public static org.apache.commons.httpclient.HttpClient enableProxyUsage(org.apache.commons.httpclient.HttpClient client, java.net.URL url)
client
- url
-
of the passed
,
HttpClient
public static java.lang.String readCharsetFromContentType(javax.servlet.http.HttpServletRequest request)
HttpServletRequest
. If no content type or no
charset is defined the charset read from CharsetUtils
will be returned instead. So it is gauranteed that
the method will not return null
request
-
public static java.lang.String readCharsetFromContentType(java.lang.String contentType)
contentType
-
readCharsetFromContentType(HttpServletRequest)
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org