| Modifier and Type | Field and Description |
|---|---|
| private final Attribute | |
| private boolean | |
| private static final Logger | |
| private final Buffer | |
| private String | |
| private final Queue |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addShutdownHandler(final ShutdownHandler handler)
Add the |
| public void | |
| private Buffer | |
| private int | |
| 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 NextAction | Returns: theNextAction.the ctx, final FilterChainEvent FilterChainContext for the current org.
invocation.the event triggering the invocation of this method. event)Overrides org. Implements org. Handling Http request completion event sent by Http server filter and send the Ajp end response message. |
| public NextAction | Returns: theNextActionthe ctx)FilterChainContext for the current org.
invocation.Overrides org. Implements org. Handle the Ajp message. |
| public NextAction | Returns: theNextActionthe ctx)FilterChainContext for the current org.
invocation.Overrides org. Implements org. Encoding HttpResponsePacket or HttpContent to Ajp message. |
| 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. |
| private NextAction | |
| private NextAction | |
| private NextAction | Returns: NextActionthe ctx, final Buffer FilterChainContext for the current org.
invocation.the content of the forwarded request content)Process ForwardRequest request message. |
| private NextAction | processShutdown(final FilterChainContext ctx, final Buffer message)
Process Shutdown request message. |
| public void | |
| private void | |
| private void | |
| public void | |
| public void | setTomcatAuthentication(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)/** If set to true, the authentication will be done in Grizzly. |
| httpRequestInProcessAttr | back to summary |
|---|---|
| private final Attribute<AjpHttpRequest> httpRequestInProcessAttr | |
| isTomcatAuthentication | back to summary |
|---|---|
| private boolean isTomcatAuthentication | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| NEED_MORE_DATA_MESSAGE | back to summary |
|---|---|
| private final Buffer NEED_MORE_DATA_MESSAGE | |
| secret | back to summary |
|---|---|
| private String secret | |
| shutdownHandlers | back to summary |
|---|---|
| private final Queue<ShutdownHandler> shutdownHandlers | |
| AjpHandlerFilter | back to summary |
|---|---|
| public AjpHandlerFilter() | |
| addShutdownHandler | back to summary |
|---|---|
| public void addShutdownHandler(final ShutdownHandler handler) Add the
| |
| configure | back to summary |
|---|---|
| public void configure(final Properties properties) Configure Ajp Filter using properties. We support following properties: request.useSecret, request.secret, tomcatAuthentication.
| |
| encodeHttpPacket | back to summary |
|---|---|
| private Buffer encodeHttpPacket(final Connection<L> connection, final HttpPacket httpPacket) | |
| extractType | back to summary |
|---|---|
| private int extractType(final FilterChainContext ctx, final Buffer buffer) | |
| getSecret | back to summary |
|---|---|
| public String getSecret() If not null, only requests from workers with this secret keyword will be accepted.
| |
| handleEvent | back to summary |
|---|---|
| public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException Overrides org. Implements org. Handling Http request completion event sent by Http server filter and send the Ajp end response message.
| |
| handleRead | back to summary |
|---|---|
| public NextAction handleRead(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Handle the Ajp message.
| |
| handleWrite | back to summary |
|---|---|
| public NextAction handleWrite(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Encoding HttpResponsePacket or HttpContent to Ajp message.
| |
| 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.
| |
| processCPing | back to summary |
|---|---|
| private NextAction processCPing(final FilterChainContext ctx, final Buffer message) throws IOException Process CPing request message. We send CPong response back as plain Grizzly | |
| processData | back to summary |
|---|---|
| private NextAction processData(final FilterChainContext ctx, final Buffer messageContent) | |
| processForwardRequest | back to summary |
|---|---|
| private NextAction processForwardRequest(final FilterChainContext ctx, final Buffer content) throws IOException Process ForwardRequest request message.
| |
| processShutdown | back to summary |
|---|---|
| private NextAction processShutdown(final FilterChainContext ctx, final Buffer message) Process Shutdown request message. For now just ignore it. | |
| removeShutdownHandler | back to summary |
|---|---|
| public void removeShutdownHandler(final ShutdownHandler handler) Remove the
| |
| sendEndResponse | back to summary |
|---|---|
| private void sendEndResponse(final FilterChainContext ctx) throws IOException | |
| sendMoreDataRequestIfNeeded | back to summary |
|---|---|
| private void sendMoreDataRequestIfNeeded(final FilterChainContext ctx) throws IOException | |
| setSecret | back to summary |
|---|---|
| public void setSecret(String requiredSecret) If not null, only requests from workers with this secret keyword will be accepted.
| |
| setTomcatAuthentication | back to summary |
|---|---|
| public void setTomcatAuthentication(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.
| |