Package org.capnproto
Class ReaderOptions
- java.lang.Object
-
- org.capnproto.ReaderOptions
-
public final class ReaderOptions extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static ReaderOptionsDEFAULT_READER_OPTIONSintnestingLimitHow many pointer indirections deep a message may be before an exception is thrown.longtraversalLimitInWordsHow many words are allowed to be read before an exception is thrown, to protect against denial of service attacks.
-
Constructor Summary
Constructors Constructor Description ReaderOptions(long traversalLimitInWords, int nestingLimit)
-
-
-
Field Detail
-
traversalLimitInWords
public final long traversalLimitInWords
How many words are allowed to be read before an exception is thrown, to protect against denial of service attacks. -1 means "no limit".
-
nestingLimit
public final int nestingLimit
How many pointer indirections deep a message may be before an exception is thrown.
-
DEFAULT_READER_OPTIONS
public static final ReaderOptions DEFAULT_READER_OPTIONS
-
-