|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.enterprise.WebUtils
public class WebUtils
| Constructor Summary | |
|---|---|
WebUtils()
|
|
| Method Summary | |
|---|---|
static org.apache.commons.httpclient.HttpClient |
enableProxyUsage(org.apache.commons.httpclient.HttpClient client,
URL url)
reads proxyHost and proxyPort from system parameters and sets them to the passed HttpClient instance |
static String |
getAbsoluteContextPath(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 String |
readCharsetFromContentType(HttpServletRequest request)
returns the charset read from the content type of the passed HttpServletRequest. |
static String |
readCharsetFromContentType(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 String getAbsoluteContextPath(HttpServletRequest request)
request -
public static org.apache.commons.httpclient.HttpClient enableProxyUsage(org.apache.commons.httpclient.HttpClient client,
URL url)
client - url -
of the passed,
HttpClientpublic static String readCharsetFromContentType(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 String readCharsetFromContentType(String contentType)
contentType -
readCharsetFromContentType(HttpServletRequest)
|
deegree 2.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net