@Override public UpgradeEvent retain(int increment) { upgradeRequest.retain(increment); return this; }
@Override public UpgradeEvent retain() { upgradeRequest.retain(); return this; }
FullHttpRequest request) throws Exception { if (wsUri.equalsIgnoreCase(request.getUri())) { ctx.fireChannelRead(request.retain()); } else { if (HttpHeaders.is100ContinueExpected(request)) {
@Override public FullHttpRequest retain() { return request.retain(); }
@Override public FullHttpRequest retain(int increment) { return request.retain(increment); }
stream.setProperty(upgradeKey, true); InboundHttpToHttp2Adapter.handle( ctx, connection(), decoder().frameListener(), upgrade.upgradeRequest().retain()); } finally { upgrade.release();
stream.setProperty(upgradeKey, true); InboundHttpToHttp2Adapter.handle( ctx, connection(), decoder().frameListener(), upgrade.upgradeRequest().retain()); } finally { upgrade.release();
stream.setProperty(upgradeKey, true); InboundHttpToHttp2Adapter.handle( ctx, connection(), decoder().frameListener(), upgrade.upgradeRequest().retain()); } finally { upgrade.release();
@Override public UpgradeEvent retain() { upgradeRequest.retain(); return this; }
@Override public UpgradeEvent retain() { upgradeRequest.retain(); return this; }
@Override public UpgradeEvent retain(int increment) { upgradeRequest.retain(increment); return this; }
@Override public UpgradeEvent retain() { upgradeRequest.retain(); return this; }
@Override public UpgradeEvent retain(int increment) { upgradeRequest.retain(increment); return this; }
@Override public UpgradeEvent retain() { upgradeRequest.retain(); return this; }
@Override protected void encode(ChannelHandlerContext ctx, FullHttpRequest msg, List<Object> out) throws Exception { msg.retain(); out.add(msg); }
@Override protected void decode(ChannelHandlerContext ctx, FullHttpRequest msg, List<Object> out) throws Exception { out.add(new Request(ctx.channel(),msg.retain())); } }
@Override protected void decode(ChannelHandlerContext ctx, FullHttpRequest msg, List<Object> out) throws Exception { msg.retain(); out.add(msg); // If the session cookie exists, set its value on the ctx. final String sessionId = HttpRequestDecoder.getSessionId(msg, this.anonymousAccessAllowed); ctx.channel().attr(SubscriptionRegistry.SESSION_ID_ATTR).set(sessionId); LOG.info("Found session id in WebSocket channel, setting sessionId {} on context", sessionId); }
public HttpRequestHandler(HttpServerHandler<?> handler, ChannelHandlerContext ctx, IServlet servlet, IServletRequest request, int chunkSize) { this.handler = handler; this.ctx = ctx; this.servlet = servlet; this.request = request; response = chunkSize == 0 ? new FullResponse(handler, ctx, request.getHttpRequest()) : new ChunkedResponse(handler, ctx, request.getHttpRequest(), chunkSize); request.getHttpRequest().retain(); }