|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.quickstart.taglibrary.request.PatternRequestFormatter
Uses a String pattern template to format a field or fields of an HTTP Request.
The template can be any string pattern. Field values are inserted into the template at positions indicated by {fieldname} sections where "fieldname" is the name of some HTTP Request parameter.
XML Configuration Template:
<RequestFormatter class="com.raritantechnologies.quickstart.taglibrary.request.PatternRequestFormatter"
startBraceChar="[ character to start field name block - default is '{' ]"
endBraceChar="[ character to start field name block - default is '}' ]"
useSessionData="[true(default)|false - use session data if request is null ]" >
<!-- =========================================================== -->
<!-- String template that request field values will be inserted -->
<!-- into. If this is HTML or XML, the template block should be -->
<!-- wrapped in a <!CDATA[ ]]> section. -->
<!-- =========================================================== -->
<Template>
Display string with {fieldname} sections that will have http request values
inserted by the PatternRequestFormatter.
</Template>
<StringFilters>
<!-- ==================================================== -->
<!-- One or more IStringFilters to be used to filter -->
<!-- request parameter values. requestParams="ALL" -->
<!-- indicates that the filter should be used with -->
<!-- all parameter values. -->
<!-- ==================================================== -->
<StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]"
requestParams="[ comma separated list of the request parameter that is(are) to be filtered ]" >
<!-- Configuration parameters for the StringFilter ... -->
</StringFilter>
</StringFilters>
</RequestFormatter>
| Constructor Summary | |
PatternRequestFormatter()
|
|
| Method Summary | |
java.lang.String |
formatSearchRequest(RaritanPageContext pageContext)
Reformat the http request as a String. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PatternRequestFormatter()
| Method Detail |
public java.lang.String formatSearchRequest(RaritanPageContext pageContext)
IRequestFormatter
formatSearchRequest in interface IRequestFormatterpublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IRequestFormatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||