|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.http.Hyperlink
Creates a Hyperlink
Field Summary | |
private java.lang.String |
anchor
The Anchor |
private TupleArray |
params
The query parameters |
private java.lang.String |
uri
The URI |
Constructor Summary | |
Hyperlink()
Constructor for Hyperlink |
|
Hyperlink(java.lang.String uri)
Constructor for Hyperlink |
|
Hyperlink(java.lang.String uri,
java.lang.String queryString)
Constructor for Hyperlink |
|
Hyperlink(java.lang.String uri,
java.lang.String queryString,
java.lang.String anchor)
Constructor for Hyperlink |
Method Summary | |
void |
addQueryParameter(java.lang.String key,
java.lang.Object value)
Adds a new Query parameter to the query parameter list |
void |
addQueryParameters(java.lang.String queryString)
Extracts all query parameters from the given query string |
static Hyperlink |
createFromRequest(javax.servlet.http.HttpServletRequest request)
Creates a Hyperlink Object from the HttpServletRequest |
java.lang.String |
encodeURL(javax.servlet.ServletResponse response)
Performs a URL encoding of the Hyperlink |
java.lang.String |
getAnchor()
Returns the Anchor |
int |
getParamCount()
|
java.lang.String |
getUri()
Returns the URI |
static Hyperlink |
parse(java.lang.String link)
Creates a Hyperlink Object from the HttpServletRequest |
void |
setAnchor(java.lang.String newAnchor)
Sets the Anchor |
void |
setUri(java.lang.String newUri)
Sets the URI |
java.lang.String |
toString()
Creates a single URL String from the Hyperlink |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String uri
private java.lang.String anchor
private TupleArray params
Constructor Detail |
public Hyperlink()
public Hyperlink(java.lang.String uri)
uri
- the URIpublic Hyperlink(java.lang.String uri, java.lang.String queryString)
uri
- the URIqueryString
- the query stringpublic Hyperlink(java.lang.String uri, java.lang.String queryString, java.lang.String anchor)
uri
- the URIqueryString
- the query stringanchor
- the anchorMethod Detail |
public static Hyperlink parse(java.lang.String link)
link
- Hyperlink as a String
public static Hyperlink createFromRequest(javax.servlet.http.HttpServletRequest request)
request
- HttpServletRequest
public int getParamCount()
public void addQueryParameters(java.lang.String queryString)
queryString
- The query stringpublic void addQueryParameter(java.lang.String key, java.lang.Object value)
key
- Parameter keyvalue
- Parameter valuepublic java.lang.String getUri()
public void setUri(java.lang.String newUri)
newUri
- the URIpublic java.lang.String getAnchor()
public void setAnchor(java.lang.String newAnchor)
newAnchor
- the Anchorpublic java.lang.String encodeURL(javax.servlet.ServletResponse response)
response
- ServletResponse
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |