gnu.javax.net.ssl.provider

Class MaxFragmentLength

Implemented Interfaces:
Builder, Constructed

public class MaxFragmentLength
extends Extension.Value

Extension value

Field Summary

static MaxFragmentLength
LEN_2_10
static MaxFragmentLength
LEN_2_11
static MaxFragmentLength
LEN_2_12
static MaxFragmentLength
LEN_2_9

Method Summary

ByteBuffer
buffer()
int
getValue()
int
length()
Returns the total length, in bytes, of this structure.
int
maxLength()
String
toString()
Convert this Object to a human-readable String.
String
toString(String prefix)
Returns a printable representation of this structure, with the given prefix prepended to each line.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

LEN_2_10

public static final MaxFragmentLength LEN_2_10

LEN_2_11

public static final MaxFragmentLength LEN_2_11

LEN_2_12

public static final MaxFragmentLength LEN_2_12

LEN_2_9

public static final MaxFragmentLength LEN_2_9

Method Details

buffer

public ByteBuffer buffer()
Specified by:
buffer in interface Builder

getValue

public int getValue()

length

public int length()
Returns the total length, in bytes, of this structure.
Specified by:
length in interface Constructed
Returns:
The length of this structure.

maxLength

public int maxLength()

toString

public String toString()
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() and such.

It is typical, but not required, to ensure that this method never completes abruptly with a RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

Overrides:
toString in interface Object
Returns:
the String representing this Object, which may be null

toString

public String toString(String prefix)
Returns a printable representation of this structure, with the given prefix prepended to each line.
Specified by:
toString in interface Constructed
Parameters:
prefix - The prefix to prepend to each line of the output. This value may be null.
Returns:
A printable representation of this structure.