-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
41 lines (30 loc) · 1.31 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ProxyFilter
If a filter-mapping url-pattern in the web.xml file matches the
requested URL, then the request will be sent to the ProxyFilter, which
will in turn forward the request. A few searches and replaces are
performed on the response to re-write URLs in response document.
The proxy point is hard-coded in:
/src/gov/loc/ndmso/ProxyFilter/ProxyFilter.java
The searches and replaces are hard-coded in
/src/gov/loc/ndmso/ProxyFilter/RequestProxy.java
Install the built jar to the WEB-INF/lib directory.
Add to web.xml (after description but before listener or servlets):
<filter>
<filter-name>ProxyFilter</filter-name>
<filter-class>gov.loc.ndmso.proxyfilter.ProxyFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ProxyFilter</filter-name>
<url-pattern>/lcds/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ProxyFilter</filter-name>
<url-pattern>/static/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ProxyFilter</filter-name>
<url-pattern>/media/*</url-pattern>
</filter-mapping>
Gratitude to Paul Tuckey of urlrewritefilter (http://code.google.com/p/urlrewritefilter/)
and Joachim Ansorg, whose work was used by Tuckey.
Questions/comments to Kevin Ford ([email protected], [email protected])