Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<!--
   UrlRewriteFilter DTD
   http://tuckey.org/urlrewrite/
-->

<!ELEMENT urlrewrite (rule*, outbound-rule*)>

<!ELEMENT rule (name?, note?, condition*, from, run*, to?, set*)>
<!ATTLIST rule
enabled   (true|false)               "true"
>

<!ELEMENT outbound-rule (name?, note?, condition*, from, run*, to?, set*)>
<!ATTLIST outbound-rule
enabled   (true|false)               "true"
>

<!ELEMENT name (#PCDATA)>
<!ELEMENT note (#PCDATA)>

<!ELEMENT condition (#PCDATA)>
<!ATTLIST condition
type        (time|year|month|dayofmonth|dayofweek|ampm|hourofday|minute|second|millisecond|attribute|auth-type|character-encoding|content-length|content-type|context-path|cookie|header|method|parameter|path-info|path-translated|protocol|query-string|remote-addr|remote-host|remote-user|requested-session-id|request-uri|request-url|session-attribute|session-isnew|port|server-name|scheme|user-in-role)   "header"
name        CDATA               #IMPLIED
next        (and|or)            "and"
casesensitive (true|false)      "false"
operator    (equal|notequal|greater|less|greaterorequal|lessorequal)   "equal"
>

<!ELEMENT from (#PCDATA)>
<!ATTLIST from
casesensitive (true|false)      "false"
>

<!ELEMENT set (#PCDATA)>
<!ATTLIST set
type        (request|session|response-header|cookie|content-type|charset|locale|status)    "request"
name        CDATA               #IMPLIED
>

<!ELEMENT to (#PCDATA)>
<!ATTLIST to
type        (redirect|temporary-redirect|permanent-redirect|pre-include|post-include|forward|passthrough)     "forward"
last        (true|false)               "true"
encode      (true|false)               "false"
>

<!--
eg,
<run class="org.tuckey.web.filters.urlrewrite.TestTargetOther" method="runMeFool" />
<run class="org.tuckey.web.filters.urlrewrite.TestTargetOther" method="run">
    <init-param>
        <param-name>biteMe</param-name>
        <param-value>10</param-value>
    </init-param>
</run>
-->
<!ELEMENT run (init-param*)>
<!ATTLIST run
class           CDATA               #IMPLIED
method          CDATA               #IMPLIED
neweachtime     (true|false)        "false"
>

<!ELEMENT init-param (param-name, param-value)>
<!ELEMENT param-name (#PCDATA)>
<!ELEMENT param-value (#PCDATA)>
New to GrepCode? Check out our FAQ X