public class AjpAddOn extends Object implements AddOn
AddOn for the HttpServer.
The addon searches for HttpCodecFilter occurrence in the passed
FilterChainBuilder, removes it and adds 2 filters:
AjpMessageFilter and AjpHandlerFilter on its place.| Constructor and Description |
|---|
AjpAddOn() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(boolean isTomcatAuthentication,
String secret)
Construct AjpAddOn
|
void |
configure(Properties properties)
Configure Ajp Filter using properties.
|
protected AjpHandlerFilter |
createAjpHandlerFilter() |
protected AjpMessageFilter |
createAjpMessageFilter() |
String |
getSecret()
If not null, only requests from workers with this secret keyword will
be accepted.
|
boolean |
isTomcatAuthentication()
If set to true, the authentication will be done in Grizzly.
|
void |
setup(NetworkListener networkListener,
FilterChainBuilder builder)
The method, which will be invoked by
HttpServer in order to
initialize the AddOn on the passed NetworkListener. |
public void configure(boolean isTomcatAuthentication,
String secret)
isTomcatAuthentication - if true, the authentication will be done in Grizzly.
Otherwise, the authenticated principal will be propagated from the
native webserver and used for authorization in Grizzly.secret - if not null, only requests from workers with this
secret keyword will be accepted, or null otherwise.public void configure(Properties properties)
properties - public boolean isTomcatAuthentication()
public String getSecret()
public void setup(NetworkListener networkListener, FilterChainBuilder builder)
AddOnHttpServer in order to
initialize the AddOn on the passed NetworkListener.
Most of the time the AddOn implementation will update the passed
NetworkListener's FilterChainBuilder by adding custom
Filter(s), which implement
AddOn's logic.setup in interface AddOnnetworkListener - the NetworkListener the addon is being
initialized on.builder - the FilterChainBuilder,
representing the NetworkListener logic.protected AjpHandlerFilter createAjpHandlerFilter()
protected AjpMessageFilter createAjpMessageFilter()
Copyright © 2015 Oracle Corporation. All rights reserved.