Package org.igniterealtime.jbosh
Class AttrAccept
- All Implemented Interfaces:
Comparable
Data type representing the getValue of the
accept attribute of the
bosh element.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static AttrAcceptcreateFromString(String str) Creates a new attribute instance from the provided String.(package private) booleanisAccepted(String name) Determines whether or not the specified encoding is supported.
-
Field Details
-
encodings
Array of the accepted encodings.
-
-
Constructor Details
-
AttrAccept
Creates a new attribute object.- Parameters:
val- attribute getValue- Throws:
BOSHException- on parse or validation failure
-
-
Method Details
-
createFromString
Creates a new attribute instance from the provided String.- Parameters:
str- string representation of the attribute- Returns:
- attribute instance or
nullif provided string isnull - Throws:
BOSHException- on parse or validation failure
-
isAccepted
Determines whether or not the specified encoding is supported.- Parameters:
name- encoding name
-