static void removeChannelIfDisconnected(Connection<?> connection) { if (connection != null && !connection.isOpen()) { ATTRIBUTE.remove(connection); } }
static void removeChannelIfDisconnected(Connection<?> connection) { if (connection != null && !connection.isOpen()) { ATTRIBUTE.remove(connection); } }
@Override public void removeAttribute(String key) { Grizzly.DEFAULT_ATTRIBUTE_BUILDER.createAttribute(key).remove(connection); }
@Override public void removeAttribute(String key) { Grizzly.DEFAULT_ATTRIBUTE_BUILDER.createAttribute(key).remove(connection); }
private void cleanup(final HttpContext httpCtx) { httpCtx.getCloseable().removeCloseListener(listener); REQUEST_STATE_ATTR.remove(httpCtx); }
/** * Remove the {@link Note} value associated with this request. * Use {@link #createNote(java.lang.String)} to create a new {@link Note}. * * @param <E> the {@link Note} type. * @param note {@link Note} value to be removed * @return the old value associated with the {@link Note}, that was removed */ public <E> E removeNote(final Note<E> note) { return note.attribute.remove(notesHolder); }
/** * Remove the {@link Note} value associated with this request. * Use {@link #createNote(java.lang.String)} to create a new {@link Note}. * * @param <E> the {@link Note} type. * @param note {@link Note} value to be removed * @return the old value associated with the {@link Note}, that was removed */ public <E> E removeNote(final Note<E> note) { return note.attribute.remove(notesHolder); }
@Override public void release(final AttributeStorage storage) { lengthAttribute.remove(storage); super.release(storage); }
@Override public void release(final AttributeStorage storage) { lengthAttribute.remove(storage); super.release(storage); }
@Override public void onClosed(final Closeable closeable, final CloseType type) throws IOException { final Connection connection = (Connection) closeable; final SSLHandshakeContext handshakeContext = handshakeContextAttr.get(connection); if (handshakeContext != null) { handshakeContext.failed(new java.io.EOFException()); handshakeContextAttr.remove(connection); } } }
@Override public void onClosed(final Closeable closeable, final CloseType type) throws IOException { final Connection connection = (Connection) closeable; final SSLHandshakeContext handshakeContext = handshakeContextAttr.get(connection); if (handshakeContext != null) { handshakeContext.failed(new java.io.EOFException()); handshakeContextAttr.remove(connection); } } }
@Override public void onComplete(final Context context, final Object data) throws IOException { final FilterChainContext suspendedContext = suspendedContextAttribute.remove(context); assert suspendedContext != null; suspendedContext.resume(suspendedContext.getStopAction()); } }
@Override public void onComplete(final Context context, final Object data) throws IOException { final FilterChainContext suspendedContext = suspendedContextAttribute.remove(context); assert suspendedContext != null; suspendedContext.resume(suspendedContext.getStopAction()); } }
@Override protected final boolean onHttpPacketParsed(final HttpHeader httpHeader, final FilterChainContext ctx) { final ServerHttpRequestImpl request = (ServerHttpRequestImpl) httpHeader; final boolean error = request.getProcessingState().error; if (!error) { // remove the Connection -> HttpRequestPacket association httpRequestInProcessAttr.remove(ctx.getConnection()); } return error; }
@Override public void onComplete(final Context context, final Object data) throws IOException { final FilterChainContext suspendedContext = suspendedContextAttribute.remove(context); assert suspendedContext != null; suspendedContext.resume(suspendedContext.getStopAction()); } }
@Override public void onComplete(final Context context, final Object data) throws IOException { final FilterChainContext suspendedContext = suspendedContextAttribute.remove(context); assert suspendedContext != null; suspendedContext.resume(suspendedContext.getStopAction()); } }
private void cleanup(final HttpContext httpCtx) { if (!skipCleanup) { httpCtx.getCloseable().removeCloseListener(listener); REQUEST_STATE_ATTR.remove(httpCtx); } }
@Override protected void notifyHandshakeComplete(final Connection<?> connection, final SSLEngine sslEngine) { final SSLHandshakeContext handshakeContext = handshakeContextAttr.get(connection); if (handshakeContext != null) { connection.removeCloseListener(closeListener); handshakeContext.completed(sslEngine); handshakeContextAttr.remove(connection); } super.notifyHandshakeComplete(connection, sslEngine); }
@Override protected void notifyHandshakeComplete(final Connection<?> connection, final SSLEngine sslEngine) { final SSLHandshakeContext handshakeContext = handshakeContextAttr.get(connection); if (handshakeContext != null) { connection.removeCloseListener(closeListener); handshakeContext.completed(sslEngine); handshakeContextAttr.remove(connection); } super.notifyHandshakeComplete(connection, sslEngine); }