public class AjpHandlerFilter
extends org.glassfish.grizzly.filterchain.BaseFilter
| Constructor and Description |
|---|
AjpHandlerFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addShutdownHandler(ShutdownHandler handler)
Add the
ShutdownHandler, which will be called, when shutdown
request received. |
void |
configure(Properties properties)
Configure Ajp Filter using properties.
|
String |
getSecret()
If not null, only requests from workers with this secret keyword will
be accepted.
|
org.glassfish.grizzly.filterchain.NextAction |
handleEvent(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
org.glassfish.grizzly.filterchain.FilterChainEvent event)
Handling Http request completion event sent by Http server filter and
send the Ajp end response message.
|
org.glassfish.grizzly.filterchain.NextAction |
handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
Handle the Ajp message.
|
org.glassfish.grizzly.filterchain.NextAction |
handleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
Encoding HttpResponsePacket or HttpContent to Ajp message.
|
boolean |
isTomcatAuthentication()
If set to true, the authentication will be done in Grizzly.
|
void |
removeShutdownHandler(ShutdownHandler handler)
Remove the
ShutdownHandler. |
void |
setSecret(String requiredSecret)
If not null, only requests from workers with this secret keyword will
be accepted.
|
void |
setTomcatAuthentication(boolean isTomcatAuthentication)
/**
If set to true, the authentication will be done in Grizzly.
|
public void configure(Properties properties)
properties - public boolean isTomcatAuthentication()
public void setTomcatAuthentication(boolean isTomcatAuthentication)
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.public String getSecret()
public void setSecret(String requiredSecret)
requiredSecret - if not null, only requests from workers with this
secret keyword will be accepted.public void addShutdownHandler(ShutdownHandler handler)
ShutdownHandler, which will be called, when shutdown
request received.handler - ShutdownHandlerpublic void removeShutdownHandler(ShutdownHandler handler)
ShutdownHandler.handler - ShutdownHandlerpublic org.glassfish.grizzly.filterchain.NextAction handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
throws IOException
handleRead in interface org.glassfish.grizzly.filterchain.FilterhandleRead in class org.glassfish.grizzly.filterchain.BaseFilterctx - the FilterChainContext for the current
FilterChain invocation.NextActionIOException - if an I/O error occurspublic org.glassfish.grizzly.filterchain.NextAction handleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
throws IOException
handleWrite in interface org.glassfish.grizzly.filterchain.FilterhandleWrite in class org.glassfish.grizzly.filterchain.BaseFilterctx - the FilterChainContext for the current
FilterChain invocation.NextActionIOException - if an I/O error occurspublic org.glassfish.grizzly.filterchain.NextAction handleEvent(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
org.glassfish.grizzly.filterchain.FilterChainEvent event)
throws IOException
handleEvent in interface org.glassfish.grizzly.filterchain.FilterhandleEvent in class org.glassfish.grizzly.filterchain.BaseFilterctx - the FilterChainContext for the current
FilterChain invocation.event - the event triggering the invocation of this method.NextAction.IOException - if an I/O error occurs.Copyright © 2021 Oracle Corporation. All Rights Reserved.