|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.http.RequestURI
This class represents the request URI path.
Constructor Summary | |
protected |
RequestURI()
Creates a new RequestURI. |
|
RequestURI(Host host,
java.lang.String uri,
java.lang.String enc)
Creates a new RequestURI. |
Method Summary | |
java.lang.String |
getApplicationPath()
Returns the application path. |
java.lang.String |
getContextPath()
Returns the context path. |
java.lang.String |
getDescription()
Returns the detailed description of the request URI. |
java.lang.String |
getPathInfo()
Returns the path info. |
java.lang.String |
getPathTranslated()
Returns the translated path. |
java.lang.String |
getQueryString()
Returns the encoded query string. |
java.lang.String |
getQueryStringEncoded()
Returns the query string. |
java.lang.String |
getRequestURI()
Returns the request URI. |
java.lang.String |
getServletMapping()
Returns the servlet mapping. |
java.lang.String |
getServletPath()
Returns the servlet path. |
java.lang.String |
getURI()
Returns the original URI. |
void |
recycle()
Recycles the object. |
void |
setURI(Host host,
java.lang.String uri,
java.lang.String enc)
Parses the URI path. |
java.lang.String |
toString()
Returns string representation of the request URI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected RequestURI()
public RequestURI(Host host, java.lang.String uri, java.lang.String enc) throws java.io.IOException
First argument must be a valid Host
instance. The uri argument
must be an absolute path starting with the slash "/". If the URI path is
url-encoded, it will be decoded according to the given encoding.
host
- the HTTP hosturi
- the URI pathenc
- the Java encodingMethod Detail |
public void setURI(Host host, java.lang.String uri, java.lang.String enc) throws java.io.IOException
First argument must be a valid Host
instance. The uri argument
must be an absolute path starting with the slash "/". If the URI path is
url-encoded, it is decoded according to the given encoding.
This method may be called more than once on the same RequestURI instance,
if the recycle()
method is invoked before the each subsequent call.
host
- the HTTP hosturi
- the URI pathenc
- the Java encoding
java.lang.NullPointerException
- if path is null
java.lang.IllegalArgumentException
- if path does not start with "/"
java.lang.IllegalStateException
- if URI has been set already
java.io.IOException
- if an error occuredpublic void recycle()
After calling this method the RequestURI object can be reused by invoking
the setURI
method again.
public java.lang.String getURI()
Returns the original URI used in the constructor or the setURI
method.
public java.lang.String getRequestURI()
Returns url-encoded URI without the query string.
public java.lang.String getContextPath()
Returns the url-decoded context path.
public java.lang.String getServletPath()
Returns the url-decoded servlet path.
public java.lang.String getPathInfo()
Returns the url-decoded path info.
public java.lang.String getPathTranslated()
Returns the url-decoded translated path info.
public java.lang.String getQueryStringEncoded()
Returns the url-decoded query string.
public java.lang.String getQueryString()
Returns the url-encoded query string.
public java.lang.String getApplicationPath()
Returns the url-decoded absolute path relative to the application context, with the query string stripped off.
public java.lang.String getServletMapping()
Returns the servlet mapping for this URI path.
public java.lang.String getDescription()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |