|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pushtotest.tool.response.RESearchLink
public class RESearchLink
ResponseLink implementation that searches using regular expressions
| Constructor Summary | |
|---|---|
RESearchLink()
|
|
| Method Summary | |
|---|---|
void |
finalize()
This method will be called after the handle() method
returns. |
Response |
handle(Response response)
The returned response object will contain two new parameters: research.foundcount - the number of matches research.founditems - A java.util.List containing all the "match sets" Each "match set" is an Array of the "groups" where group 0 is the entire match. |
void |
init(ResponseLinkConfig config)
Init processes the ResponseLinConfig parameters config must contain: "pattern" - Regular Expression Pattern, string config can optionally contain: "CASE_INSENSITIVE" "MULTILINE" "DOTALL" "UNICODE_CASE" "CANON_EQ" The existance of each within the config object, sets the matching java.util.regex.Pattern flag on the expression compile See the Sun documentation for the specific regular expression syntax used at: http://java.sun.com/j2se/1.4/docs/api/java/util/regex/Pattern.html |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RESearchLink()
| Method Detail |
|---|
public void init(ResponseLinkConfig config)
throws ToolException
init in interface ResponseLinkconfig - The ResponseLinkConfig to initialize this link.
ToolException - "pattern" parameter is missing
public Response handle(Response response)
throws ToolException
handle in interface ResponseLinkresponse - The Response object to handle.
ToolException - Pattern has not been initialized
UnsupportedTypeException - If the id() method call on the Response
object returns a type that this ResponseLink cannot handle.public void finalize()
handle() method
returns. It will allow you to clean up after yourself in any way
that is needed.
finalize in interface ResponseLinkfinalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||