-
Notifications
You must be signed in to change notification settings - Fork 145
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
332a831
commit 08f3628
Showing
11 changed files
with
152 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
125 changes: 125 additions & 0 deletions
125
src/main/resources/org/tuckey/web/filters/urlrewrite/dtds/urlrewrite5.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 |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<!-- | ||
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|class-rule|outbound-rule)*, catch*)> | ||
<!ATTLIST urlrewrite | ||
use-query-string (true|false) "false" | ||
use-context (true|false) "false" | ||
decode-using CDATA #IMPLIED | ||
default-match-type (regex|wildcard) #IMPLIED | ||
> | ||
|
||
<!ELEMENT rule (name?, note?, condition*, from?, set*, run*, gzip?, to?)> | ||
<!ATTLIST rule | ||
enabled (true|false) "true" | ||
match-type (regex|wildcard) #IMPLIED | ||
> | ||
|
||
<!ELEMENT class-rule EMPTY> | ||
<!ATTLIST class-rule | ||
class CDATA #IMPLIED | ||
method CDATA "matches" | ||
last (true|false) "true" | ||
> | ||
|
||
<!ELEMENT outbound-rule (name?, note?, condition*, from, set*, run*, to?)> | ||
<!ATTLIST outbound-rule | ||
enabled (true|false) "true" | ||
encodefirst (true|false) "false" | ||
match-type (regex|wildcard) #IMPLIED | ||
> | ||
|
||
<!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|local-port|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|exception|request-filename) "header" | ||
name CDATA #IMPLIED | ||
next (and|or) "and" | ||
casesensitive (true|false) "false" | ||
operator (equal|notequal|greater|less|greaterorequal|lessorequal|instanceof|isdir|isfile|isfilewithsize|notdir|notfile|notfilewithsize) "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|expires|parameter|method) "request" | ||
name CDATA #IMPLIED | ||
> | ||
|
||
<!ELEMENT to (#PCDATA)> | ||
<!ATTLIST to | ||
type (redirect|temporary-redirect|permanent-redirect|pre-include|post-include|forward|passthrough|proxy) "forward" | ||
last (true|false) "false" | ||
qsappend (true|false) "false" | ||
drop-cookies (true|false) "true" | ||
encode (true|false) #IMPLIED | ||
context CDATA #IMPLIED | ||
> | ||
|
||
<!-- | ||
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 | ||
jsonhandler (true|false) "false" | ||
neweachtime (true|false) "false" | ||
> | ||
|
||
<!-- shortcut for org.tuckey.web.filters.urlrewrite.utils.GzipFilterRun --> | ||
<!ELEMENT gzip (init-param*)> | ||
|
||
|
||
<!ELEMENT init-param (param-name, param-value)> | ||
<!ELEMENT param-name (#PCDATA)> | ||
<!ELEMENT param-value (#PCDATA)> | ||
|
||
<!ELEMENT catch (run?)> | ||
<!ATTLIST catch | ||
class CDATA #IMPLIED | ||
> |
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