@Contract
public interface ProtocolHandler
ProtcolHandler
implementations are used for
discriminating inbound connection attempts and as factories for
MuxableSocket implementations for the specified protocol.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
|
ServerChannel getDefaultServerChannel()
int getHeaderLength()
int getPriority()
boolean claimSocket(weblogic.utils.io.Chunk head)
weblogic.socket.MuxableSocket createSocket(weblogic.utils.io.Chunk head, java.net.Socket s, ServerChannel networkChannel) throws java.io.IOException
java.io.IOException
Protocol getProtocol()