static class ProtocolImpl.NullProtocolHandler extends java.lang.Object implements ProtocolHandler
Constructor and Description |
---|
NullProtocolHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
claimSocket(weblogic.utils.io.Chunk head)
Returns true if protocol can accept the socket.
|
weblogic.socket.MuxableSocket |
createSocket(weblogic.utils.io.Chunk head,
java.net.Socket s,
ServerChannel networkChannel)
Implementations use corresponding protocol factory to create a
protocol socket.
|
ServerChannel |
getDefaultServerChannel()
Get the default server channel for this protocol.
|
int |
getHeaderLength()
Returns the number of bytes this handler will peek in claimSocket
This is required as while disciminating we need to know if socket
was not claimed due to 1)less noof bytes read or 2) Bytes were
different than accepted for this protocol.
|
int |
getPriority()
Returns the relative priority of this protocol handler handlers
with a higher priority value will be discriminated later.
|
Protocol |
getProtocol()
Return the protocol discriminated by this handler
|
public ServerChannel getDefaultServerChannel()
ProtocolHandler
getDefaultServerChannel
in interface ProtocolHandler
public int getHeaderLength()
ProtocolHandler
getHeaderLength
in interface ProtocolHandler
public int getPriority()
ProtocolHandler
getPriority
in interface ProtocolHandler
public boolean claimSocket(weblogic.utils.io.Chunk head)
ProtocolHandler
claimSocket
in interface ProtocolHandler
public weblogic.socket.MuxableSocket createSocket(weblogic.utils.io.Chunk head, java.net.Socket s, ServerChannel networkChannel) throws java.io.IOException
ProtocolHandler
createSocket
in interface ProtocolHandler
java.io.IOException
public Protocol getProtocol()
ProtocolHandler
getProtocol
in interface ProtocolHandler