Top Description Fields Constructors Methods
org.glassfish.grizzly.http.ajp

public Class AjpAddOn

extends Object
implements AddOn
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.http.server.AddOn
Imports
java.util.Properties, org.glassfish.grizzly.filterchain.FilterChainBuilder, org.glassfish.grizzly.http.HttpCodecFilter, org.glassfish.grizzly.http.server.AddOn, .HttpServerFilter, .NetworkListener

Ajp 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.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private boolean
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod 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
configure(final Properties properties)

Configure Ajp Filter using properties.

protected AjpHandlerFilter
protected AjpMessageFilter
public String

Returns:

not null, if only requests from workers with this secret keyword will be accepted, or null otherwise.
getSecret
()

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.
isTomcatAuthentication
()

If set to true, the authentication will be done in Grizzly.

public void
setup(final NetworkListener networkListener, final FilterChainBuilder builder)

Implements org.glassfish.grizzly.http.server.AddOn.setup.

The method, which will be invoked by HttpServer in order to initialize the AddOn on the passed NetworkListener.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isTomcatAuthenticationback to summary
private boolean isTomcatAuthentication
secretback to summary
private String secret

Constructor Detail

AjpAddOnback to summary
public AjpAddOn()

Method Detail

configureback to summary
public void configure(final boolean isTomcatAuthentication, final String secret)

Construct AjpAddOn

Parameters
isTomcatAuthentication: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.

secret:String

if not null, only requests from workers with this secret keyword will be accepted, or null otherwise.

configureback to summary
public void configure(final Properties properties)

Configure Ajp Filter using properties. We support following properties: request.useSecret, request.secret, tomcatAuthentication.

createAjpHandlerFilterback to summary
protected AjpHandlerFilter createAjpHandlerFilter()
createAjpMessageFilterback to summary
protected AjpMessageFilter createAjpMessageFilter()
getSecretback to summary
public String getSecret()

If not null, only requests from workers with this secret keyword will be accepted.

Returns:String

not null, if only requests from workers with this secret keyword will be accepted, or null otherwise.

isTomcatAuthenticationback 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.

Returns:boolean

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.

setupback to summary
public void setup(final NetworkListener networkListener, final FilterChainBuilder builder)

Implements org.glassfish.grizzly.http.server.AddOn.setup.

Doc from org.glassfish.grizzly.http.server.AddOn.setup.

The method, which will be invoked by HttpServer 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 org.glassfish.grizzly.filterchain.Filter(s), which implement AddOn's logic.

Annotations
@Override