Tighten up visibility
This commit is contained in:
parent
7e95be0295
commit
0e47fb50e2
@ -28,7 +28,7 @@ public class HttpRequestEncoder extends HttpObjectEncoder<HttpRequest> {
|
||||
private static final char SLASH = '/';
|
||||
|
||||
@Override
|
||||
public boolean acceptOutboundMessage(Object msg) throws Exception {
|
||||
protected boolean acceptOutboundMessage(Object msg) throws Exception {
|
||||
return super.acceptOutboundMessage(msg) && !(msg instanceof HttpResponse);
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,7 @@ import static io.netty.handler.codec.http.HttpConstants.*;
|
||||
public class HttpResponseEncoder extends HttpObjectEncoder<HttpResponse> {
|
||||
|
||||
@Override
|
||||
public boolean acceptOutboundMessage(Object msg) throws Exception {
|
||||
protected boolean acceptOutboundMessage(Object msg) throws Exception {
|
||||
return super.acceptOutboundMessage(msg) && !(msg instanceof HttpRequest);
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ public abstract class ChannelOutboundMessageHandlerAdapter<I>
|
||||
*
|
||||
* @param msg the message
|
||||
*/
|
||||
public boolean acceptOutboundMessage(Object msg) throws Exception {
|
||||
protected boolean acceptOutboundMessage(Object msg) throws Exception {
|
||||
return msgMatcher.match(msg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user