| Modifier and Type | Class and Description |
|---|---|
| public static enum | ServletChannelState.Action
The actions to take as the channel moves from state to state. |
| private static enum | |
| private static enum | |
| private static enum | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private boolean | |
| private AsyncContextEvent | |
| private Throwable | |
| private boolean | |
| private boolean | |
| private ServletChannelState. | |
| private final AutoLock | |
| private Thread | |
| private ServletChannelState. | |
| private ServletChannelState. | |
| private boolean | |
| private final ServletChannel | |
| private ServletChannelState. | |
| private long | |
| private static final long | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private boolean | |
| public void | |
| public void | asyncError(Throwable
the error. failure)This method is called when a failure occurs asynchronously to normal handling. |
| protected void | |
| protected void | |
| public void | |
| protected void | |
| public Throwable | |
| protected void | |
| public void | |
| pack-priv void | |
| pack-priv void | errorHandlingComplete(Throwable
the failure reported by the error handling,
or failure)null if there was no failureCalled when the |
| public AsyncContextEvent | |
| public Object | |
| public ServletContextHandler | |
| public ServletChannel | |
| public ServletChannelState. | |
| public String | |
| private String | |
| public long | |
| public ServletChannelState. | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| pack-priv AutoLock | |
| private ServletChannelState. | |
| public void | |
| protected void | |
| public boolean | |
| public boolean | |
| public void | |
| public boolean | |
| public void | onReadUnready()
Called to indicate that no content is currently available, more content has been demanded and may be available, but that a handling thread may need to produce (fill/parse) it. |
| protected void | |
| public boolean | |
| public void | |
| protected void | |
| public void | |
| pack-priv void | |
| protected void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | |
| public String | |
| private String | |
| protected ServletChannelState. | Returns: next actions be handled again (e.g. because of a resume that happened before unhandle was called)Signal that the HttpConnection has finished handling the request. |
| public void |
| _asyncListeners | back to summary |
|---|---|
| private List<AsyncListener> _asyncListeners | |
| _asyncWritePossible | back to summary |
|---|---|
| private boolean _asyncWritePossible | |
| _event | back to summary |
|---|---|
| private AsyncContextEvent _event | |
| _failure | back to summary |
|---|---|
| private Throwable _failure | |
| _failureListener | back to summary |
|---|---|
| private boolean _failureListener | |
| _initial | back to summary |
|---|---|
| private boolean _initial | |
| _inputState | back to summary |
|---|---|
| private ServletChannelState. | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| _onTimeoutThread | back to summary |
|---|---|
| private Thread _onTimeoutThread | |
| _outputState | back to summary |
|---|---|
| private ServletChannelState. | |
| _requestState | back to summary |
|---|---|
| private ServletChannelState. | |
| _sendError | back to summary |
|---|---|
| private boolean _sendError | |
| _servletChannel | back to summary |
|---|---|
| private final ServletChannel _servletChannel | |
| _state | back to summary |
|---|---|
| private ServletChannelState. | |
| _timeoutMs | back to summary |
|---|---|
| private long _timeoutMs | |
| DEFAULT_TIMEOUT | back to summary |
|---|---|
| private static final long DEFAULT_TIMEOUT | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| ServletChannelState | back to summary |
|---|---|
| protected ServletChannelState(ServletChannel servletChannel) | |
| abort | back to summary |
|---|---|
| public void abort(Throwable failure) | |
| abortResponse | back to summary |
|---|---|
| private boolean abortResponse(Throwable failure) | |
| addListener | back to summary |
|---|---|
| public void addListener(AsyncListener listener) | |
| asyncError | back to summary |
|---|---|
| public void asyncError(Throwable failure) This method is called when a failure occurs asynchronously to normal handling.
If the request is async, we arrange for the exception to be thrown from the
normal handling loop and then actually handled by
| |
| cancelTimeout | back to summary |
|---|---|
| protected void cancelTimeout() | |
| cancelTimeout | back to summary |
|---|---|
| protected void cancelTimeout(AsyncContextEvent event) | |
| complete | back to summary |
|---|---|
| public void complete() | |
| completed | back to summary |
|---|---|
| protected void completed(Throwable failure) | |
| completeResponse | back to summary |
|---|---|
| public Throwable completeResponse() | |
| completing | back to summary |
|---|---|
| protected void completing() | |
| dispatch | back to summary |
|---|---|
| public void dispatch(ServletContext context, String path) | |
| errorHandling | back to summary |
|---|---|
| pack-priv void errorHandling() Called when an asynchronous call to
| |
| errorHandlingComplete | back to summary |
|---|---|
| pack-priv void errorHandlingComplete(Throwable failure) Called when the
| |
| getAsyncContextEvent | back to summary |
|---|---|
| public AsyncContextEvent getAsyncContextEvent() | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) | |
| getContextHandler | back to summary |
|---|---|
| public ServletContextHandler getContextHandler() | |
| getServletChannel | back to summary |
|---|---|
| public ServletChannel getServletChannel() | |
| getState | back to summary |
|---|---|
| public ServletChannelState. | |
| getStatusString | back to summary |
|---|---|
| public String getStatusString() | |
| getStatusStringLocked | back to summary |
|---|---|
| private String getStatusStringLocked() | |
| getTimeout | back to summary |
|---|---|
| public long getTimeout() | |
| handling | back to summary |
|---|---|
public ServletChannelState.
| |
| hasListener | back to summary |
|---|---|
| public boolean hasListener(AsyncListener listener) | |
| isAborted | back to summary |
|---|---|
| public boolean isAborted() | |
| isAsync | back to summary |
|---|---|
| public boolean isAsync() | |
| isAsyncStarted | back to summary |
|---|---|
| public boolean isAsyncStarted() | |
| isCompleted | back to summary |
|---|---|
| pack-priv boolean isCompleted() | |
| isExpired | back to summary |
|---|---|
| public boolean isExpired() | |
| isIdle | back to summary |
|---|---|
| public boolean isIdle() | |
| isInitial | back to summary |
|---|---|
| public boolean isInitial() | |
| isInputUnready | back to summary |
|---|---|
| public boolean isInputUnready() | |
| isResponseCommitted | back to summary |
|---|---|
| public boolean isResponseCommitted() | |
| isResponseCompleted | back to summary |
|---|---|
| public boolean isResponseCompleted() | |
| isSendError | back to summary |
|---|---|
| public boolean isSendError() | |
| isSuspended | back to summary |
|---|---|
| public boolean isSuspended() | |
| lock | back to summary |
|---|---|
| pack-priv AutoLock lock() | |
| nextAction | back to summary |
|---|---|
| private ServletChannelState. | |
| onContentAdded | back to summary |
|---|---|
| public void onContentAdded() Called to indicate that some content was produced and is ready for consumption. | |
| onError | back to summary |
|---|---|
| protected void onError(Throwable th) | |
| onIdleTimeout | back to summary |
|---|---|
| public boolean onIdleTimeout(TimeoutException timeout) | |
| onReadEof | back to summary |
|---|---|
| public boolean onReadEof() | |
| onReadIdle | back to summary |
|---|---|
| public void onReadIdle() Called to indicate that the content is being consumed. | |
| onReadReady | back to summary |
|---|---|
| public boolean onReadReady() Called to signal that the channel is ready for a callback.
| |
| onReadUnready | back to summary |
|---|---|
| public void onReadUnready() Called to indicate that no content is currently available, more content has been demanded and may be available, but that a handling thread may need to produce (fill/parse) it. | |
| onTimeout | back to summary |
|---|---|
| protected void onTimeout() | |
| onWritePossible | back to summary |
|---|---|
| public boolean onWritePossible() | |
| openOutput | back to summary |
|---|---|
| public void openOutput() | |
| recycle | back to summary |
|---|---|
| protected void recycle() | |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(String name) | |
| runInContext | back to summary |
|---|---|
| pack-priv void runInContext(AsyncContextEvent event, Runnable runnable) | |
| scheduleDispatch | back to summary |
|---|---|
| protected void scheduleDispatch() | |
| sendError | back to summary |
|---|---|
| private void sendError(Throwable th) | |
| sendError | back to summary |
|---|---|
| public void sendError(int code, String message) | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object attribute) | |
| setTimeout | back to summary |
|---|---|
| public void setTimeout(long ms) | |
| startAsync | back to summary |
|---|---|
| public void startAsync(AsyncContextEvent event) | |
| timeout | back to summary |
|---|---|
| protected void timeout() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toStringLocked | back to summary |
|---|---|
| private String toStringLocked() | |
| unhandle | back to summary |
|---|---|
| protected ServletChannelState. Signal that the HttpConnection has finished handling the request. For blocking connectors, this call may block if the request has been suspended (startAsync called).
| |
| upgrade | back to summary |
|---|---|
| public void upgrade() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ServletChannelState. | |
| public static ServletChannelState. |
| ASYNC_DISPATCH | back to summary |
|---|---|
| public static final ServletChannelState. | |
| ASYNC_ERROR | back to summary |
|---|---|
| public static final ServletChannelState. | |
| ASYNC_TIMEOUT | back to summary |
|---|---|
| public static final ServletChannelState. | |
| COMPLETE | back to summary |
|---|---|
| public static final ServletChannelState. | |
| DISPATCH | back to summary |
|---|---|
| public static final ServletChannelState. | |
| READ_CALLBACK | back to summary |
|---|---|
| public static final ServletChannelState. | |
| SEND_ERROR | back to summary |
|---|---|
| public static final ServletChannelState. | |
| TERMINATED | back to summary |
|---|---|
| public static final ServletChannelState. | |
| WAIT | back to summary |
|---|---|
| public static final ServletChannelState. | |
| WRITE_CALLBACK | back to summary |
|---|---|
| public static final ServletChannelState. | |
| Action | back to summary |
|---|---|
| private Action() | |
| valueOf | back to summary |
|---|---|
| public static ServletChannelState. | |
| values | back to summary |
|---|---|
| public static ServletChannelState. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ServletChannelState. | |
| public static ServletChannelState. |
| IDLE | back to summary |
|---|---|
| public static final ServletChannelState. | |
| READY | back to summary |
|---|---|
| public static final ServletChannelState. | |
| UNREADY | back to summary |
|---|---|
| public static final ServletChannelState. | |
| InputState | back to summary |
|---|---|
| private InputState() | |
| valueOf | back to summary |
|---|---|
| public static ServletChannelState. | |
| values | back to summary |
|---|---|
| public static ServletChannelState. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ServletChannelState. | |
| public static ServletChannelState. |
| ABORTED | back to summary |
|---|---|
| public static final ServletChannelState. | |
| COMPLETED | back to summary |
|---|---|
| public static final ServletChannelState. | |
| IDLE | back to summary |
|---|---|
| public static final ServletChannelState. | |
| OPEN | back to summary |
|---|---|
| public static final ServletChannelState. | |
| OutputState | back to summary |
|---|---|
| private OutputState() | |
| valueOf | back to summary |
|---|---|
| public static ServletChannelState. | |
| values | back to summary |
|---|---|
| public static ServletChannelState. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ServletChannelState. | |
| public static ServletChannelState. |
| ASYNC | back to summary |
|---|---|
| public static final ServletChannelState. | |
| BLOCKING | back to summary |
|---|---|
| public static final ServletChannelState. | |
| COMPLETE | back to summary |
|---|---|
| public static final ServletChannelState. | |
| COMPLETED | back to summary |
|---|---|
| public static final ServletChannelState. | |
| COMPLETING | back to summary |
|---|---|
| public static final ServletChannelState. | |
| DISPATCH | back to summary |
|---|---|
| public static final ServletChannelState. | |
| ERRORING | back to summary |
|---|---|
| public static final ServletChannelState. | |
| EXPIRE | back to summary |
|---|---|
| public static final ServletChannelState. | |
| EXPIRING | back to summary |
|---|---|
| public static final ServletChannelState. | |
| RequestState | back to summary |
|---|---|
| private RequestState() | |
| valueOf | back to summary |
|---|---|
| public static ServletChannelState. | |
| values | back to summary |
|---|---|
| public static ServletChannelState. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. | |
| public static final ServletChannelState. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ServletChannelState. | |
| public static ServletChannelState. |
| HANDLING | back to summary |
|---|---|
| public static final ServletChannelState. | |
| IDLE | back to summary |
|---|---|
| public static final ServletChannelState. | |
| UPGRADED | back to summary |
|---|---|
| public static final ServletChannelState. | |
| WAITING | back to summary |
|---|---|
| public static final ServletChannelState. | |
| WOKEN | back to summary |
|---|---|
| public static final ServletChannelState. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static ServletChannelState. | |
| values | back to summary |
|---|---|
| public static ServletChannelState. | |