|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.util.URI
public class URI
Constructs URIs.
| Constructor Summary | |
|---|---|
URI(java.lang.Class<? extends javax.servlet.GenericServlet> servlet)
Deprecated. Most modern servlet containers do not by default allow dynamic servlet mappings. |
|
URI(java.lang.Class<? extends javax.servlet.GenericServlet> servlet,
java.lang.String name,
java.lang.String value)
Deprecated. Most modern servlet containers do not by default allow dynamic servlet mappings. |
|
URI(java.lang.String servletName)
Creates a URI. |
|
| Method Summary | |
|---|---|
URI |
addParameter(java.lang.String name,
java.lang.String value)
Deprecated. Use addParameter(String, String, HttpServletRequest)
instead so that the name and value are correctly encoded. |
URI |
addParameter(java.lang.String name,
java.lang.String value,
javax.servlet.http.HttpServletRequest request)
Adds an additional parameter to the URI query string. |
static java.lang.String |
encode(javax.servlet.http.HttpServletRequest request,
java.lang.String value)
Correctly encodes a name or value for the query string. |
int |
getParameterCount()
Returns the parameter count. |
URI |
setPrefix(java.lang.String prefix)
Sets the String that will be prepended to the returned URI
String. |
java.lang.String |
toString()
Return the complete URI, including any query string, as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public URI(java.lang.Class<? extends javax.servlet.GenericServlet> servlet)
servlet/ prefix to address
a dynamic servlet.
servlet - the servlet class this URI will address.
@Deprecated
public URI(java.lang.Class<? extends javax.servlet.GenericServlet> servlet,
java.lang.String name,
java.lang.String value)
servlet/ prefix to address
a dynamic servlet, with the specified query string parameter.
servlet - the servlet class this URI will address.name - the name of a query string parameter to be passed to the
servlet.value - the value of the named query string parameter to be passed to
the servlet.addParameter(java.lang.String, java.lang.String)public URI(java.lang.String servletName)
servletName - the name of the servlet this URI will address.| Method Detail |
|---|
public static java.lang.String encode(javax.servlet.http.HttpServletRequest request,
java.lang.String value)
request - the request object.value - the value to be encoded.
@Deprecated
public URI addParameter(java.lang.String name,
java.lang.String value)
addParameter(String, String, HttpServletRequest)
instead so that the name and value are correctly encoded.
name - the name of a query string parameter to be passed to the
servlet.value - the value of the named query string parameter to be passed to
the servlet.
public URI addParameter(java.lang.String name,
java.lang.String value,
javax.servlet.http.HttpServletRequest request)
name - the name of a query string parameter to be passed to the
servlet.value - the value of the named query string parameter to be passed to
the servlet.request - the servlet request, so that the name and value can be encoded
appropriately.
public int getParameterCount()
public URI setPrefix(java.lang.String prefix)
String that will be prepended to the returned URI
String. The default is null.
prefix - the prefix String, or null if no prefix is
required.
public java.lang.String toString()
toString in class java.lang.Object
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||