Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdfc639
commit c8931ea
Showing
11 changed files
with
1,126 additions
and
807 deletions.
There are no files selected for viewing
103 changes: 66 additions & 37 deletions
103
src/main/resources/org/tuckey/web/filters/urlrewrite/dtds/urlrewrite1.0.dtd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,66 @@ | ||
<!-- | ||
UrlRewriteFilter DTD | ||
http://www.tuckey.org/urlrewrite/ | ||
--> | ||
|
||
<!ELEMENT urlrewrite (rule+)> | ||
|
||
<!ELEMENT rule (name?, note?, condition*, from, to?, set*)> | ||
<!ATTLIST rule | ||
enabled (true|false) "true" | ||
> | ||
|
||
|
||
<!ELEMENT condition (#PCDATA)> | ||
<!ATTLIST condition | ||
type (header|method|port|time|year|month|dayofmonth|dayofweek|ampm|hourofday|minute|second|millisecond) "header" | ||
name CDATA #IMPLIED | ||
next (and|or) "and" | ||
operator (equal|notequal|greater|less|greaterorequal|lessorequal) "equal" | ||
> | ||
|
||
<!ELEMENT from (#PCDATA)> | ||
|
||
<!ELEMENT to (#PCDATA)> | ||
<!ATTLIST to | ||
type (redirect|temporary-redirect|permanent-redirect|include|forward|passthrough) "forward" | ||
last (true|false) "true" | ||
> | ||
|
||
<!ELEMENT set (#PCDATA)> | ||
<!ATTLIST set | ||
type (request|session|response-header) "request" | ||
name CDATA #IMPLIED | ||
> | ||
|
||
<!ELEMENT name (#PCDATA)> | ||
<!ELEMENT note (#PCDATA)> | ||
<!-- | ||
UrlRewriteFilter DTD | ||
http://www.tuckey.org/urlrewrite/ | ||
|
||
Licensed under the BSD License. Text as follows. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
|
||
- Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
- Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided | ||
with the distribution. | ||
- Neither the name tuckey.org nor the names of its contributors | ||
may be used to endorse or promote products derived from this | ||
software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. | ||
--> | ||
|
||
<!ELEMENT urlrewrite (rule+)> | ||
|
||
<!ELEMENT rule (name?, note?, condition*, from, to?, set*)> | ||
<!ATTLIST rule | ||
enabled (true|false) "true" | ||
> | ||
|
||
|
||
<!ELEMENT condition (#PCDATA)> | ||
<!ATTLIST condition | ||
type (header|method|port|time|year|month|dayofmonth|dayofweek|ampm|hourofday|minute|second|millisecond) "header" | ||
name CDATA #IMPLIED | ||
next (and|or) "and" | ||
operator (equal|notequal|greater|less|greaterorequal|lessorequal) "equal" | ||
> | ||
|
||
<!ELEMENT from (#PCDATA)> | ||
|
||
<!ELEMENT to (#PCDATA)> | ||
<!ATTLIST to | ||
type (redirect|temporary-redirect|permanent-redirect|include|forward|passthrough) "forward" | ||
last (true|false) "true" | ||
> | ||
|
||
<!ELEMENT set (#PCDATA)> | ||
<!ATTLIST set | ||
type (request|session|response-header) "request" | ||
name CDATA #IMPLIED | ||
> | ||
|
||
<!ELEMENT name (#PCDATA)> | ||
<!ELEMENT note (#PCDATA)> |
113 changes: 71 additions & 42 deletions
113
src/main/resources/org/tuckey/web/filters/urlrewrite/dtds/urlrewrite2.0.dtd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,71 @@ | ||
<!-- | ||
UrlRewriteFilter DTD | ||
http://www.tuckey.org/urlrewrite/ | ||
--> | ||
|
||
<!ELEMENT urlrewrite (rule+)> | ||
|
||
<!ELEMENT rule (name?, note?, condition*, from, to?, set*)> | ||
<!ATTLIST rule | ||
enabled (true|false) "true" | ||
> | ||
|
||
|
||
<!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 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" | ||
> | ||
|
||
<!ELEMENT set (#PCDATA)> | ||
<!ATTLIST set | ||
type (request|session|response-header|cookie|content-type|charset|locale|status) "request" | ||
name CDATA #IMPLIED | ||
> | ||
|
||
<!ELEMENT name (#PCDATA)> | ||
<!ELEMENT note (#PCDATA)> | ||
<!-- | ||
UrlRewriteFilter DTD | ||
http://www.tuckey.org/urlrewrite/ | ||
|
||
Licensed under the BSD License. Text as follows. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
|
||
- Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
- Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided | ||
with the distribution. | ||
- Neither the name tuckey.org nor the names of its contributors | ||
may be used to endorse or promote products derived from this | ||
software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. | ||
--> | ||
|
||
<!ELEMENT urlrewrite (rule+)> | ||
|
||
<!ELEMENT rule (name?, note?, condition*, from, to?, set*)> | ||
<!ATTLIST rule | ||
enabled (true|false) "true" | ||
> | ||
|
||
|
||
<!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 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" | ||
> | ||
|
||
<!ELEMENT set (#PCDATA)> | ||
<!ATTLIST set | ||
type (request|session|response-header|cookie|content-type|charset|locale|status) "request" | ||
name CDATA #IMPLIED | ||
> | ||
|
||
<!ELEMENT name (#PCDATA)> | ||
<!ELEMENT note (#PCDATA)> |
163 changes: 96 additions & 67 deletions
163
src/main/resources/org/tuckey/web/filters/urlrewrite/dtds/urlrewrite2.3.dtd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,96 @@ | ||
<!-- | ||
UrlRewriteFilter DTD | ||
http://www.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?)> | ||
<!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)> | ||
<!-- | ||
UrlRewriteFilter DTD | ||
http://www.tuckey.org/urlrewrite/ | ||
|
||
Licensed under the BSD License. Text as follows. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
|
||
- Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
- Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided | ||
with the distribution. | ||
- Neither the name tuckey.org nor the names of its contributors | ||
may be used to endorse or promote products derived from this | ||
software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. | ||
--> | ||
|
||
<!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?)> | ||
<!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)> |
Oops, something went wrong.