@Deprecated public class Extension extends Object
Extension
is used to create , parse
Extension
object.Constructor and Description |
---|
Extension(Element element)
Deprecated.
Constructor to create
Extension object. |
Extension(List children)
Deprecated.
Constructor to create
Extension object. |
Extension(Map avpairs)
Deprecated.
Constructor to create
Extension object. |
Modifier and Type | Method and Description |
---|---|
Map |
getAttributeMap()
Deprecated.
|
List |
getChildren()
Deprecated.
Returns a list of XML
String objects. |
int |
getMinorVersion()
Deprecated.
Returns the
MinorVersion . |
static Extension |
parseURLEncodedRequest(javax.servlet.http.HttpServletRequest request,
String prefix,
int minorVersion)
Deprecated.
Returns
Extension object. |
void |
setAttributeMap(Map avpairs)
Deprecated.
Converts attribute value pairs to a list of XML
String
objects. |
void |
setChildren(List children)
Deprecated.
Sets a list of XML
String object. |
void |
setMinorVersion(int minorVersion)
Deprecated.
Sets the
MinorVersion . |
String |
toURLEncodedQueryString(String prefix)
Deprecated.
Returns an URL Encoded String.
|
String |
toXMLString()
Deprecated.
Returns a String representation of the
Extension element. |
String |
toXMLString(boolean includeNS,
boolean declareNS)
Deprecated.
Creates a String representation of the
Extension element. |
public Extension(List children) throws FSMsgException
Extension
object.children
- a list of XML String
object.FSMsgException
- on error.public Extension(Element element) throws FSMsgException
Extension
object.element
- the Extension
Element object.FSMsgException
- on error.public Extension(Map avpairs) throws FSMsgException
Extension
object. Each attribute
value pair will be converted to a XML string. The converted XML string
has only one element. The local name of the element will be the key of
the map entry and the value of the element will be the value of the map
entry. Both key and value of the map entry should be a
String
object.avpairs
- attribute value pairs.FSMsgException
- on error.public List getChildren()
String
objects.String
objects.Extension.setChildren(List)
public void setChildren(List children) throws FSMsgException
String
object.children
- a list of XML String
object.FSMsgException
Extension.getChildren()
public Map getAttributeMap()
public void setAttributeMap(Map avpairs) throws FSMsgException
String
objects. Each attribute value pair will be converted to a XML string.
The converted XML string has only one element. The local name of the
element will be the key of the map entry and the value of the element
will be the value of the map entry. Both key and value of the map entry
should be a String
object.avpairs
- attribute value pairs.FSMsgException
- on error.public int getMinorVersion()
MinorVersion
.MinorVersion
.Extension.setMinorVersion(int)
public void setMinorVersion(int minorVersion)
MinorVersion
.minorVersion
- the MinorVersion
.Extension.getMinorVersion()
public String toXMLString() throws FSMsgException
Extension
element.FSMsgException
- if there is an error converting this object to
a string.public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Extension
element.includeNS
- : Determines whether or not the namespace qualifier
is prepended to the Element when converteddeclareNS
- : Determines whether or not the namespace is declared
within the Element.FSMsgException
- if there is an error.public static Extension parseURLEncodedRequest(javax.servlet.http.HttpServletRequest request, String prefix, int minorVersion) throws FSMsgException
Extension
object. The object is creating by
parsing the HttpServletRequest
object.request
- the HttpServletRequest
object.prefix
- the string that is prepended to the key of query
string.minorVersion
- the MinorVersion
.Extension
object.FSMsgException
- if there is an error creating
Extension
object.public String toURLEncodedQueryString(String prefix) throws FSMsgException
prefix
- the string that will be prepended to the key of query
string.FSMsgException
- if there is an error.Copyright © 2010-2018, ForgeRock All Rights Reserved.