HttpMessageEncoder.getCookieHeaderName() must be protected

This commit is contained in:
Trustin Lee 2009-02-17 09:50:10 +00:00
parent 6671cd34fa
commit 1f9c8256d8
3 changed files with 4 additions and 6 deletions

View File

@ -23,11 +23,10 @@ package org.jboss.netty.handler.codec.http;
import static org.jboss.netty.buffer.ChannelBuffers.*;
import static org.jboss.netty.handler.codec.http.HttpCodecUtil.*;
import static org.jboss.netty.handler.codec.http.HttpCodecUtil.SEMICOLON;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.Collection;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
@ -128,7 +127,6 @@ public abstract class HttpMessageEncoder extends OneToOneEncoder {
buf.writeBytes(CRLF);
}
public abstract byte[] getCookieHeaderName();
protected abstract byte[] getCookieHeaderName();
protected abstract void encodeInitialLine(ChannelBuffer buf, HttpMessage message) throws Exception;
}

View File

@ -50,7 +50,7 @@ public class HttpRequestEncoder extends HttpMessageEncoder {
}
@Override
public byte[] getCookieHeaderName() {
protected byte[] getCookieHeaderName() {
return COOKIE_HEADER;
}
}

View File

@ -48,7 +48,7 @@ public class HttpResponseEncoder extends HttpMessageEncoder {
}
@Override
public byte[] getCookieHeaderName() {
protected byte[] getCookieHeaderName() {
return COOKIE_HEADER;
}
}