Class Extension
- java.lang.Object
-
- com.sun.identity.federation.message.common.Extension
-
@Deprecated public class Extension extends Object
Deprecated.since 12.0.0The classExtensionis used to create , parseExtensionobject.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MapgetAttributeMap()Deprecated.ListgetChildren()Deprecated.Returns a list of XMLStringobjects.intgetMinorVersion()Deprecated.Returns theMinorVersion.static ExtensionparseURLEncodedRequest(jakarta.servlet.http.HttpServletRequest request, String prefix, int minorVersion)Deprecated.ReturnsExtensionobject.voidsetAttributeMap(Map avpairs)Deprecated.Converts attribute value pairs to a list of XMLStringobjects.voidsetChildren(List children)Deprecated.Sets a list of XMLStringobject.voidsetMinorVersion(int minorVersion)Deprecated.Sets theMinorVersion.StringtoURLEncodedQueryString(String prefix)Deprecated.Returns an URL Encoded String.StringtoXMLString()Deprecated.Returns a String representation of theExtensionelement.StringtoXMLString(boolean includeNS, boolean declareNS)Deprecated.Creates a String representation of theExtensionelement.
-
-
-
Constructor Detail
-
Extension
public Extension(List children) throws FSMsgException
Deprecated.Constructor to createExtensionobject.- Parameters:
children- a list of XMLStringobject.- Throws:
FSMsgException- on error.
-
Extension
public Extension(Element element) throws FSMsgException
Deprecated.Constructor to createExtensionobject.- Parameters:
element- theExtensionElement object.- Throws:
FSMsgException- on error.
-
Extension
public Extension(Map avpairs) throws FSMsgException
Deprecated.Constructor to createExtensionobject. 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 aStringobject.- Parameters:
avpairs- attribute value pairs.- Throws:
FSMsgException- on error.
-
-
Method Detail
-
getChildren
public List getChildren()
Deprecated.Returns a list of XMLStringobjects.- Returns:
- a list of XML
Stringobjects. - See Also:
setChildren(List)
-
setChildren
public void setChildren(List children) throws FSMsgException
Deprecated.Sets a list of XMLStringobject.- Parameters:
children- a list of XMLStringobject.- Throws:
FSMsgException- See Also:
getChildren()
-
getAttributeMap
public Map getAttributeMap()
Deprecated.
-
setAttributeMap
public void setAttributeMap(Map avpairs) throws FSMsgException
Deprecated.Converts attribute value pairs to a list of XMLStringobjects. 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 aStringobject.- Parameters:
avpairs- attribute value pairs.- Throws:
FSMsgException- on error.
-
getMinorVersion
public int getMinorVersion()
Deprecated.Returns theMinorVersion.- Returns:
- the
MinorVersion. - See Also:
setMinorVersion(int)
-
setMinorVersion
public void setMinorVersion(int minorVersion)
Deprecated.Sets theMinorVersion.- Parameters:
minorVersion- theMinorVersion.- See Also:
getMinorVersion()
-
toXMLString
public String toXMLString() throws FSMsgException
Deprecated.Returns a String representation of theExtensionelement.- Returns:
- a string containing the valid XML for this element
- Throws:
FSMsgException- if there is an error converting this object to a string.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Deprecated.Creates a String representation of theExtensionelement.- Parameters:
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.- Returns:
- string containing the valid XML for this element.
- Throws:
FSMsgException- if there is an error.
-
parseURLEncodedRequest
public static Extension parseURLEncodedRequest(jakarta.servlet.http.HttpServletRequest request, String prefix, int minorVersion) throws FSMsgException
Deprecated.ReturnsExtensionobject. The object is creating by parsing theHttpServletRequestobject.- Parameters:
request- theHttpServletRequestobject.prefix- the string that is prepended to the key of query string.minorVersion- theMinorVersion.- Returns:
object. - Throws:
FSMsgException- if there is an error creatingExtensionobject.
-
toURLEncodedQueryString
public String toURLEncodedQueryString(String prefix) throws FSMsgException
Deprecated.Returns an URL Encoded String.- Parameters:
prefix- the string that will be prepended to the key of query string.- Returns:
- a url encoded query string.
- Throws:
FSMsgException- if there is an error.
-
-