| Modifier and Type | Field and Description |
|---|---|
| private final Behavior | |
| private final WebSocketComponents | |
| private DemandChain | |
| private List | |
| private IncomingFrames | |
| private DemandChain | |
| private static final Logger | |
| private OutgoingFrames | |
| private final Extension[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public String | |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Implements org. Dump this object (and children) into an Appendable using the provided indent after any new lines. |
| public String | dumpSelf()
Overrides default org. The description of this/self found in the dump. |
| public List | |
| public List | Returns: list of negotiated extensionsGet the list of negotiated extensions, each entry being a full "name; params" extension configuration |
| public IncomingFrames | |
| public OutgoingFrames | |
| public Extension | |
| public Extension | |
| public Extension | |
| public boolean | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | negotiate(List<ExtensionConfig>
the configurations being requested by the client offeredConfigs, List<ExtensionConfig> the configurations accepted by the server negotiatedConfigs)Perform the extension negotiation. |
| public void | onFrame(Frame
the frame to process. frame, Callback the read completion. callback)Implements org. Process the incoming frame. |
| public void | sendFrame(Frame
the frame to eventually write to the network layer. frame, Callback the callback to notify when the frame is written. callback, boolean the batch mode requested by the sender. batch)Implements org. A frame, and optional callback, intended for the network layer. |
| public void | |
| public String |
| behavior | back to summary |
|---|---|
| private final Behavior behavior | |
| components | back to summary |
|---|---|
| private final WebSocketComponents components | |
| demandChain | back to summary |
|---|---|
| private DemandChain demandChain | |
| extensions | back to summary |
|---|---|
| private List<Extension> extensions | |
| incoming | back to summary |
|---|---|
| private IncomingFrames incoming | |
| lastDemand | back to summary |
|---|---|
| private DemandChain lastDemand | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| outgoing | back to summary |
|---|---|
| private OutgoingFrames outgoing | |
| rsvClaims | back to summary |
|---|---|
| private final Extension[] rsvClaims | |
| ExtensionStack | back to summary |
|---|---|
| public ExtensionStack(WebSocketComponents components, Behavior behavior) | |
| close | back to summary |
|---|---|
| public void close() | |
| demand | back to summary |
|---|---|
| public void demand() | |
| dump | back to summary |
|---|---|
| public String dump() Overrides default org.
| |
| dump | back to summary |
|---|---|
| public void dump(Appendable out, String indent) throws IOException Implements org. Doc from org. Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
| |
| dumpSelf | back to summary |
|---|---|
| public String dumpSelf() Overrides default org. Doc from org. The description of this/self found in the dump. Allows for alternative representation of Object other then .toString() where the long form output of toString() is represented in a cleaner way within the dump infrastructure. | |
| getExtensions | back to summary |
|---|---|
public List
| |
| getNegotiatedExtensions | back to summary |
|---|---|
| public List Get the list of negotiated extensions, each entry being a full "name; params" extension configuration
| |
| getNextIncoming | back to summary |
|---|---|
public IncomingFrames getNextIncoming()
| |
| getNextOutgoing | back to summary |
|---|---|
public OutgoingFrames getNextOutgoing()
| |
| getRsv1User | back to summary |
|---|---|
| public Extension getRsv1User() | |
| getRsv2User | back to summary |
|---|---|
| public Extension getRsv2User() | |
| getRsv3User | back to summary |
|---|---|
| public Extension getRsv3User() | |
| hasNegotiatedExtensions | back to summary |
|---|---|
| public boolean hasNegotiatedExtensions() | |
| initialize | back to summary |
|---|---|
| public void initialize(IncomingFrames incoming, OutgoingFrames outgoing, CoreSession coreSession) | |
| isRsv1Used | back to summary |
|---|---|
| public boolean isRsv1Used() | |
| isRsv2Used | back to summary |
|---|---|
| public boolean isRsv2Used() | |
| isRsv3Used | back to summary |
|---|---|
| public boolean isRsv3Used() | |
| negotiate | back to summary |
|---|---|
| public void negotiate(List<ExtensionConfig> offeredConfigs, List<ExtensionConfig> negotiatedConfigs) Perform the extension negotiation.
For the list of negotiated extensions, use
| |
| onFrame | back to summary |
|---|---|
| public void onFrame(Frame frame, Callback callback) Implements org. Doc from org. Process the incoming frame. Note if you need to hang onto any information from the frame, be sure to copy it, as the information contained in the Frame will be released and/or reused by the implementation. Failure of the callback will propagate the failure back to the | |
| sendFrame | back to summary |
|---|---|
| public void sendFrame(Frame frame, Callback callback, boolean batch) Implements org. Doc from org. A frame, and optional callback, intended for the network layer. Note the frame can undergo many transformations in the various layers and extensions present in the implementation. If you are implementing a mutation, you are obliged to handle the incoming Callback appropriately. | |
| setLastDemand | back to summary |
|---|---|
| public void setLastDemand(DemandChain lastDemand) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |