public class JBossResponseContext extends Object implements ResponseContext
| Constructor and Description |
|---|
JBossResponseContext() |
| Modifier and Type | Method and Description |
|---|---|
Element |
asElement(Document root)
Return a new Element given the owner document
|
<T> T |
get(String key)
Get an element from the map
|
int |
getDecision()
Decision based on the evaluation of policies
|
Node |
getDocumentElement()
Return the element of the document
from where the response was created if available
Null if no parsing was involved
|
ResultType |
getResult()
Get the result
|
void |
marshall(OutputStream os)
Marshall the response context onto an Output Stream
|
void |
readResponse(InputStream is)
Read a response from an input stream
|
void |
readResponse(Node node)
Read a preparsed Node
|
<T> void |
set(String key,
T obj)
Set an object on the map
|
public <T> T get(String key)
ContextMapOpget in interface ContextMapOpT - object from the mapkey - KeyContextMapOp.get(String)public <T> void set(String key, T obj)
ContextMapOpset in interface ContextMapOpkey - Key for the mapobj - Object to be placedContextMapOp.set(String, Object)public int getDecision()
ResponseContextgetDecision in interface ResponseContextXACMLConstants.DECISION_PERMITResponseContext.getDecision()public ResultType getResult()
ResponseContextgetResult in interface ResponseContextResponseContext.getResult()public Node getDocumentElement()
ResponseContextgetDocumentElement in interface ResponseContextResponseContext.getDocumentElement()public void marshall(OutputStream os) throws IOException
ResponseContextmarshall in interface ResponseContextos - OutputStream (System.out, ByteArrayOutputStream etc)IOExceptionResponseContext.marshall(OutputStream)public void readResponse(InputStream is) throws Exception
ResponseContextreadResponse in interface ResponseContextExceptionResponseContext.readResponse(InputStream)public void readResponse(Node node) throws IOException
ResponseContextreadResponse in interface ResponseContextIOExceptionResponseContext.readResponse(Node)public Element asElement(Document root)
ElementMappingTypeasElement in interface ElementMappingTypeElementMappingType.asElement(Document)Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.