Package org.igniterealtime.jbosh
Class AttrAccept
- java.lang.Object
-
- org.igniterealtime.jbosh.AbstractAttr<java.lang.String>
-
- org.igniterealtime.jbosh.AttrAccept
-
- All Implemented Interfaces:
java.lang.Comparable
final class AttrAccept extends AbstractAttr<java.lang.String>
Data type representing the getValue of theaccept
attribute of thebosh
element.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]
encodings
Array of the accepted encodings.
-
Constructor Summary
Constructors Modifier Constructor Description private
AttrAccept(java.lang.String val)
Creates a new attribute object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static AttrAccept
createFromString(java.lang.String str)
Creates a new attribute instance from the provided String.(package private) boolean
isAccepted(java.lang.String name)
Determines whether or not the specified encoding is supported.
-
-
-
Constructor Detail
-
AttrAccept
private AttrAccept(java.lang.String val)
Creates a new attribute object.- Parameters:
val
- attribute getValue- Throws:
BOSHException
- on parse or validation failure
-
-
Method Detail
-
createFromString
static AttrAccept createFromString(java.lang.String str) throws BOSHException
Creates a new attribute instance from the provided String.- Parameters:
str
- string representation of the attribute- Returns:
- attribute instance or
null
if provided string isnull
- Throws:
BOSHException
- on parse or validation failure
-
isAccepted
boolean isAccepted(java.lang.String name)
Determines whether or not the specified encoding is supported.- Parameters:
name
- encoding name
-
-