public interface ProtocolLayer
ProtocolStack consists of a number of ProtocolLayers. This interface represents the general
contract of all layers in the stack.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ProtocolLayer.Recv
Interface to indicate that this layer receives data from lower layers.
|
static interface |
ProtocolLayer.Send
Interface to indicate that this layer sends data to lower layers.
|
| Modifier and Type | Field and Description |
|---|---|
static ByteBuffer |
EMPTY_BUFFER
A handy constant to use for no-op send/receive calls.
|
static Charset |
UTF_8
Deprecated.
Use
StandardCharsets |
| Modifier and Type | Method and Description |
|---|---|
void |
init(ProtocolStack.Ptr ptr)
Initializes the layer with its
ProtocolStack.Ptr. |
void |
start()
Starts this layer.
|
static final ByteBuffer EMPTY_BUFFER
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) static final Charset UTF_8
StandardCharsetsvoid init(@Nonnull ProtocolStack.Ptr ptr) throws IOException
ProtocolStack.Ptr. All lower layers in the stack will be initialized
before a call to this method. All layers in a stack will be initialized before a call to start().ptr - the position of this layer in the stack.IOException - if something goes wrong.void start()
throws IOException
IOException - if something goes wrong.Copyright © 2004–2020. All rights reserved.