|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Uniform resource identifier. String like this one:
(scheme)://(userinfo)@(host):(port)(context_path)(path)?(query)#(fragment)
\______ location _______/
Method Summary | |
java.lang.String |
getContextPath()
Gets context path. |
java.lang.String |
getFragment()
Gets fragment. |
java.lang.String |
getHost()
Gets host. |
java.lang.String |
getLocation()
Gets location (path + query + fragment). |
java.lang.String |
getParameter(java.lang.String name)
Gets query parameter value or null if the
parameter does not exist. |
java.util.Set |
getParameterNames()
Gets query parameters. |
java.lang.String[] |
getParameters(java.lang.String name)
Returns an array of the values the given request parameter has, or null if the parameter does not exist. |
java.lang.String |
getPath()
Gets path. |
int |
getPort()
Gets port. |
java.lang.String |
getQuery()
Gets query. |
java.lang.String |
getScheme()
Gets scheme. |
java.lang.String |
getUserinfo()
Gets userinfo. |
java.lang.String |
toExternalForm()
Gets string representation of this URI. |
Method Detail |
public java.lang.String getScheme()
public java.lang.String getUserinfo()
public java.lang.String getHost()
public int getPort()
-1
if the port is not setpublic java.lang.String getContextPath()
null
.
public java.lang.String getLocation()
public java.lang.String getPath()
public java.lang.String getFragment()
public java.lang.String getQuery()
public java.util.Set getParameterNames()
public java.lang.String getParameter(java.lang.String name)
null
if the
parameter does not exist.
If you use this method with a multivalued parameter, the value
returned is equal to the first value in the array returned by
getParameters
.
name
- a parameter name
public java.lang.String[] getParameters(java.lang.String name)
null
if the parameter does not exist.
If the parameter has a single value, the array has a length of
1.
name
- a parameter name
public java.lang.String toExternalForm()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |