@Override public boolean equals(Object o) { if (!(o instanceof DefaultFullHttpRequest)) { return false; } DefaultFullHttpRequest other = (DefaultFullHttpRequest) o; return super.equals(other) && content().equals(other.content()) && trailingHeaders().equals(other.trailingHeaders()); }
@Override public FullHttpRequest replace(ByteBuf content) { DefaultFullHttpRequest duplicate = new DefaultFullHttpRequest(protocolVersion(), method(), uri(), content); duplicate.headers().set(headers()); duplicate.trailingHeaders().set(trailingHeaders()); return duplicate; }
@Override public int hashCode() { int hash = this.hash; if (hash == 0) { if (content().refCnt() != 0) { try { hash = 31 + content().hashCode(); } catch (IllegalReferenceCountException ignored) { // Handle race condition between checking refCnt() == 0 and using the object. hash = 31; } } else { hash = 31; } hash = 31 * hash + trailingHeaders().hashCode(); hash = 31 * hash + super.hashCode(); this.hash = hash; } return hash; }
@Override public FullHttpRequest replace(ByteBuf content) { FullHttpRequest request = new DefaultFullHttpRequest(protocolVersion(), method(), uri(), content, headers().copy(), trailingHeaders().copy()); request.setDecoderResult(decoderResult()); return request; }
@Override public boolean equals(Object o) { if (!(o instanceof DefaultFullHttpRequest)) { return false; } DefaultFullHttpRequest other = (DefaultFullHttpRequest) o; return super.equals(other) && content().equals(other.content()) && trailingHeaders().equals(other.trailingHeaders()); }
@Override public boolean equals(Object o) { if (!(o instanceof DefaultFullHttpRequest)) { return false; } DefaultFullHttpRequest other = (DefaultFullHttpRequest) o; return super.equals(other) && content().equals(other.content()) && trailingHeaders().equals(other.trailingHeaders()); }
@Override public boolean equals(Object o) { if (!(o instanceof DefaultFullHttpRequest)) { return false; } DefaultFullHttpRequest other = (DefaultFullHttpRequest) o; return super.equals(other) && content().equals(other.content()) && trailingHeaders().equals(other.trailingHeaders()); }
@Override public boolean equals(Object o) { if (!(o instanceof DefaultFullHttpRequest)) { return false; } DefaultFullHttpRequest other = (DefaultFullHttpRequest) o; return super.equals(other) && content().equals(other.content()) && trailingHeaders().equals(other.trailingHeaders()); }
@Override public FullHttpRequest replace(ByteBuf content) { DefaultFullHttpRequest duplicate = new DefaultFullHttpRequest(protocolVersion(), method(), uri(), content); duplicate.headers().set(headers()); duplicate.trailingHeaders().set(trailingHeaders()); return duplicate; }
@Override public FullHttpRequest replace(ByteBuf content) { DefaultFullHttpRequest duplicate = new DefaultFullHttpRequest(protocolVersion(), method(), uri(), content); duplicate.headers().set(headers()); duplicate.trailingHeaders().set(trailingHeaders()); return duplicate; }
@Override public FullHttpRequest replace(ByteBuf content) { DefaultFullHttpRequest duplicate = new DefaultFullHttpRequest(protocolVersion(), method(), uri(), content); duplicate.headers().set(headers()); duplicate.trailingHeaders().set(trailingHeaders()); return duplicate; }
@Override public FullHttpRequest replace(ByteBuf content) { DefaultFullHttpRequest duplicate = new DefaultFullHttpRequest(protocolVersion(), method(), uri(), content); duplicate.headers().set(headers()); duplicate.trailingHeaders().set(trailingHeaders()); return duplicate; }
@Override public int hashCode() { int hash = this.hash; if (hash == 0) { if (content().refCnt() != 0) { try { hash = 31 + content().hashCode(); } catch (IllegalReferenceCountException ignored) { // Handle race condition between checking refCnt() == 0 and using the object. hash = 31; } } else { hash = 31; } hash = 31 * hash + trailingHeaders().hashCode(); hash = 31 * hash + super.hashCode(); this.hash = hash; } return hash; }
@Override public int hashCode() { int hash = this.hash; if (hash == 0) { if (content().refCnt() != 0) { try { hash = 31 + content().hashCode(); } catch (IllegalReferenceCountException ignored) { // Handle race condition between checking refCnt() == 0 and using the object. hash = 31; } } else { hash = 31; } hash = 31 * hash + trailingHeaders().hashCode(); hash = 31 * hash + super.hashCode(); this.hash = hash; } return hash; }
@Override public int hashCode() { int hash = this.hash; if (hash == 0) { if (content().refCnt() != 0) { try { hash = 31 + content().hashCode(); } catch (IllegalReferenceCountException ignored) { // Handle race condition between checking refCnt() == 0 and using the object. hash = 31; } } else { hash = 31; } hash = 31 * hash + trailingHeaders().hashCode(); hash = 31 * hash + super.hashCode(); this.hash = hash; } return hash; }
@Override public FullHttpRequest duplicate() { DefaultFullHttpRequest duplicate = new NettyFullHttpRequest( protocolVersion(), method(), uri(), content().duplicate(), false); duplicate.headers().set(headers()); duplicate.trailingHeaders().set(trailingHeaders()); return duplicate; }
@Override public FullHttpRequest replace(ByteBuf content) { FullHttpRequest request = new DefaultFullHttpRequest(protocolVersion(), method(), uri(), content, headers().copy(), trailingHeaders().copy()); request.setDecoderResult(decoderResult()); return request; }
@Override public FullHttpRequest replace(ByteBuf content) { FullHttpRequest request = new DefaultFullHttpRequest(protocolVersion(), method(), uri(), content, headers().copy(), trailingHeaders().copy()); request.setDecoderResult(decoderResult()); return request; }
@Override public FullHttpRequest replace(ByteBuf content) { FullHttpRequest request = new DefaultFullHttpRequest(protocolVersion(), method(), uri(), content, headers().copy(), trailingHeaders().copy()); request.setDecoderResult(decoderResult()); return request; }
@Override public FullHttpRequest replace(ByteBuf content) { FullHttpRequest request = new DefaultFullHttpRequest(protocolVersion(), method(), uri(), content, headers().copy(), trailingHeaders().copy()); request.setDecoderResult(decoderResult()); return request; }