|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.filterchain.AbstractCodecFilter<org.glassfish.grizzly.Buffer,com.google.protobuf.MessageLite>
me.cmoz.grizzly.protobuf.FixedLengthProtobufFilter
public final class FixedLengthProtobufFilter
A filter for Google's Protocol Buffers serialization format that uses a fixed length header that stores the size of a message.
| Field Summary | |
|---|---|
static int |
DEFAULT_HEADER_LENGTH
The default length of the fixed header. |
| Constructor Summary | |
|---|---|
FixedLengthProtobufFilter(com.google.protobuf.MessageLite prototype)
A Protocol Buffers filter that uses the DEFAULT_HEADER_LENGTH as
the header length containing the size of the message. |
|
FixedLengthProtobufFilter(com.google.protobuf.MessageLite prototype,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
A Protocol Buffers filter that uses the DEFAULT_HEADER_LENGTH as
the header length containing the size of a message with the supplied
extensionRegistry. |
|
FixedLengthProtobufFilter(com.google.protobuf.MessageLite prototype,
com.google.protobuf.ExtensionRegistryLite extensionRegistry,
int headerLength)
A Protocol Buffers filter that uses the supplied headerLength as
the header length containing the size of a message. |
|
FixedLengthProtobufFilter(com.google.protobuf.MessageLite prototype,
int headerLength)
A Protocol Buffers filter that uses the supplied headerLength as
the header length containing the size of a message. |
|
| Method Summary |
|---|
| Methods inherited from class org.glassfish.grizzly.filterchain.AbstractCodecFilter |
|---|
getDecoder, getEncoder, handleRead, handleWrite |
| Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter |
|---|
createContext, exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.grizzly.filterchain.Filter |
|---|
exceptionOccurred, handleAccept, handleClose, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemoved |
| Field Detail |
|---|
public static final int DEFAULT_HEADER_LENGTH
| Constructor Detail |
|---|
public FixedLengthProtobufFilter(@NonNull
com.google.protobuf.MessageLite prototype)
DEFAULT_HEADER_LENGTH as
the header length containing the size of the message.
prototype - The base protocol buffers serialization unit.
public FixedLengthProtobufFilter(@NonNull
com.google.protobuf.MessageLite prototype,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DEFAULT_HEADER_LENGTH as
the header length containing the size of a message with the supplied
extensionRegistry.
prototype - The base protocol buffers serialization unit.extensionRegistry - A table of known extensions, searchable by name
or field number, may be null.
public FixedLengthProtobufFilter(@NonNull
com.google.protobuf.MessageLite prototype,
int headerLength)
headerLength as
the header length containing the size of a message.
prototype - The base protocol buffers serialization unit.headerLength - The length of the header storing the size of a
message.
public FixedLengthProtobufFilter(@NonNull
com.google.protobuf.MessageLite prototype,
com.google.protobuf.ExtensionRegistryLite extensionRegistry,
int headerLength)
headerLength as
the header length containing the size of a message.
prototype - The base protocol buffers serialization unit.extensionRegistry - A table of known extensions, searchable by name
or field number, may be null.headerLength - The length of the header storing the size of a
message.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||