AddOn for the org.glassfish.grizzly.http.server.HttpServer .
The addon searches for HttpCodecFilter occurrence in the passed FilterChainBuilder, removes it and
adds 2 filters: AjpMessageFilter and AjpHandlerFilter on its place.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | configure(final boolean
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. isTomcatAuthentication, final String if not null, only requests from workers with this secret keyword will be accepted, or null otherwise. secret)Construct AjpAddOn |
| public void | |
| protected AjpHandlerFilter | |
| protected AjpMessageFilter | |
| public String | Returns: not null, if only requests from workers with this secret keyword will be accepted, or null otherwise.If not null, only requests from workers with this secret keyword will be accepted. |
| public boolean | Returns: true, if the authentication will be done in Grizzly. Otherwise, the authenticated principal will be propagated from the native webserver and used for authorization in Grizzly.If set to true, the authentication will be done in Grizzly. |
| public void | setup(final NetworkListener networkListener, final FilterChainBuilder builder)
Implements org. The method, which will be invoked by |
| isTomcatAuthentication | back to summary |
|---|---|
| private boolean isTomcatAuthentication | |
| secret | back to summary |
|---|---|
| private String secret | |
| AjpAddOn | back to summary |
|---|---|
| public AjpAddOn() | |
| configure | back to summary |
|---|---|
| public void configure(final boolean isTomcatAuthentication, final String secret) Construct AjpAddOn
| |
| configure | back to summary |
|---|---|
| public void configure(final Properties properties) Configure Ajp Filter using properties. We support following properties: request.useSecret, request.secret, tomcatAuthentication. | |
| createAjpHandlerFilter | back to summary |
|---|---|
| protected AjpHandlerFilter createAjpHandlerFilter() | |
| createAjpMessageFilter | back to summary |
|---|---|
| protected AjpMessageFilter createAjpMessageFilter() | |
| getSecret | back to summary |
|---|---|
| public String getSecret() If not null, only requests from workers with this secret keyword will be accepted.
| |
| isTomcatAuthentication | back to summary |
|---|---|
| public boolean isTomcatAuthentication() If set to 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. The default value is true.
| |
| setup | back to summary |
|---|---|
| public void setup(final NetworkListener networkListener, final FilterChainBuilder builder) Implements org. Doc from org. The method, which will be invoked by
| |