Class XMLResourceExceptionHandler
- java.lang.Object
-
- org.forgerock.openam.forgerockrest.utils.XMLResourceExceptionHandler
-
- All Implemented Interfaces:
org.forgerock.caf.authentication.framework.ResponseWriter
public class XMLResourceExceptionHandler extends Object implements org.forgerock.caf.authentication.framework.ResponseWriter
An implementation ofResourceExceptionHandlerthat renders to XML.
-
-
Constructor Summary
Constructors Constructor Description XMLResourceExceptionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentasXMLDOM(Map<String,Object> map)Convert a Map to XML DOM.Collection<com.google.common.net.MediaType>handles()voidwrite(org.forgerock.caf.authentication.api.MessageContext context, org.forgerock.caf.authentication.api.AuthenticationException exception)
-
-
-
Method Detail
-
handles
public Collection<com.google.common.net.MediaType> handles()
- Specified by:
handlesin interfaceorg.forgerock.caf.authentication.framework.ResponseWriter- Returns:
text/xmlandapplication/xml.
-
write
public void write(org.forgerock.caf.authentication.api.MessageContext context, org.forgerock.caf.authentication.api.AuthenticationException exception)- Specified by:
writein interfaceorg.forgerock.caf.authentication.framework.ResponseWriter
-
-