|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.fikin.xml.xpath.functions.UrlExtractQueryParam
public class UrlExtractQueryParam
Extracts a parameter value out the query part of one url
If the url does not have a query part, the given url is assumed to be a query
The url is assumed to be HTTP decoded i.e. parameter separator is '&' instead of '&' created on Jan 5, 2007
| Constructor Summary | |
|---|---|
UrlExtractQueryParam()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
evaluate(java.util.List args)
returns the parameter value |
protected java.lang.String |
getParam(java.lang.String query,
java.lang.String paramName)
extracts parameter value from an url-query string |
protected java.lang.String |
getQuery(java.lang.String url)
extract the query part from an url |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UrlExtractQueryParam()
| Method Detail |
|---|
public java.lang.Object evaluate(java.util.List args)
throws javax.xml.xpath.XPathFunctionException
evaluate in interface javax.xml.xpath.XPathFunctionjavax.xml.xpath.XPathFunctionExceptionprotected java.lang.String getQuery(java.lang.String url)
url - in the format "<path>?<query>
protected java.lang.String getParam(java.lang.String query,
java.lang.String paramName)
query - in the format "<param>=<vallue>&..."paramName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||