|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--juju.reattore.server.intercept.impl.PartitioningInterceptor
Interceptor that hands off to a different child interceptor based
on the original request. Can be used to re-map directories or to
add servlets.
Top down only. Does not handle conflicts.
Examples:
Constructor Summary | |
PartitioningInterceptor()
|
Method Summary | |
void |
add(java.lang.String path,
Interceptor inter)
Add a new child that handles 'path' and below. |
void |
addTarget(Target target)
Configuration helper method. |
boolean |
process(HttpRequest req,
HttpResponse resp)
Process an incoming HTTP request if possible, filling in the given response as it goes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PartitioningInterceptor()
Method Detail |
public void add(java.lang.String path, Interceptor inter)
path
- The path the interceptor handles.inter
- The interceptor to use on match.public void addTarget(Target target)
add(java.lang.String, juju.reattore.server.intercept.Interceptor)
public boolean process(HttpRequest req, HttpResponse resp)
Interceptor
process
in interface Interceptor
req
- HTTP request to processresp
- Response to fill in
Interceptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |