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
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
- ShutdownHandler
public void removeShutdownHandler(ShutdownHandler handler)
ShutdownHandler
.handler
- ShutdownHandler
public NextAction handleRead(FilterChainContext ctx) throws IOException
handleRead
in interface Filter
handleRead
in class BaseFilter
ctx
- the FilterChainContext
for the current
FilterChain
invocation.NextAction
IOException
- if an I/O error occurspublic NextAction handleWrite(FilterChainContext ctx) throws IOException
handleWrite
in interface Filter
handleWrite
in class BaseFilter
ctx
- the FilterChainContext
for the current
FilterChain
invocation.NextAction
IOException
- if an I/O error occurspublic NextAction handleEvent(FilterChainContext ctx, FilterChainEvent event) throws IOException
handleEvent
in interface Filter
handleEvent
in class BaseFilter
ctx
- 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 © 2015 Oracle Corporation. All rights reserved.