|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ferris.net.runner.HttpRequestParser
public class HttpRequestParser
The purpose of this class is to take a relative URL like this "/some/kind/of/path/to/resource.jsp?fname=?&lname=?" and break it into a resource and a list of parameter names where resource = "/some/kind/of/path/to/resource.jsp" and parameter names = ["fname","lname"]. The resource and list of parameter names will be used by the HttpRequestRunner to make the request to the correct resource and to appropriately set the request parameters.
Constructor Summary | |
---|---|
HttpRequestParser(String request)
Splits the request in a String representing the resource and a List |
Method Summary | |
---|---|
List<String> |
getParameters()
Return ["fname","lname"] of "/some/kind/of/path/to/resource.jsp?fname=?&lname=?" |
String |
getResource()
Return "/some/kind/of/path/to/resource.jsp" of "/some/kind/of/path/to/resource.jsp?fname=?&lname=?" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpRequestParser(String request)
request
- Method Detail |
---|
public String getResource()
public List<String> getParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |