public class AjpHandlerFilter extends 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.
|
NextAction |
handleEvent(FilterChainContext ctx,
FilterChainEvent event)
Handling Http request completion event sent by Http server filter and
send the Ajp end response message.
|
NextAction |
handleRead(FilterChainContext ctx)
Handle the Ajp message.
|
NextAction |
handleWrite(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.
|
createContext, exceptionOccurred, handleAccept, handleClose, handleConnect, onAdded, onFilterChainChanged, onRemoved, toStringpublic 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 NextAction handleRead(FilterChainContext ctx) throws IOException
handleRead in interface FilterhandleRead in class BaseFilterctx - the FilterChainContext for the current
FilterChain invocation.NextActionIOException - if an I/O error occurspublic NextAction handleWrite(FilterChainContext ctx) throws IOException
handleWrite in interface FilterhandleWrite in class BaseFilterctx - the FilterChainContext for the current
FilterChain invocation.NextActionIOException - if an I/O error occurspublic NextAction handleEvent(FilterChainContext ctx, FilterChainEvent event) throws IOException
handleEvent in interface FilterhandleEvent in class 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 © 2016 Oracle Corporation. All rights reserved.