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)
ContextMapOp
get
in interface ContextMapOp
T
- object from the mapkey
- KeyContextMapOp.get(String)
public <T> void set(String key, T obj)
ContextMapOp
set
in interface ContextMapOp
key
- Key for the mapobj
- Object to be placedContextMapOp.set(String, Object)
public int getDecision()
ResponseContext
getDecision
in interface ResponseContext
XACMLConstants.DECISION_PERMIT
ResponseContext.getDecision()
public ResultType getResult()
ResponseContext
getResult
in interface ResponseContext
ResponseContext.getResult()
public Node getDocumentElement()
ResponseContext
getDocumentElement
in interface ResponseContext
ResponseContext.getDocumentElement()
public void marshall(OutputStream os) throws IOException
ResponseContext
marshall
in interface ResponseContext
os
- OutputStream (System.out, ByteArrayOutputStream etc)IOException
ResponseContext.marshall(OutputStream)
public void readResponse(InputStream is) throws Exception
ResponseContext
readResponse
in interface ResponseContext
Exception
ResponseContext.readResponse(InputStream)
public void readResponse(Node node) throws IOException
ResponseContext
readResponse
in interface ResponseContext
IOException
ResponseContext.readResponse(Node)
public Element asElement(Document root)
ElementMappingType
asElement
in interface ElementMappingType
ElementMappingType.asElement(Document)
Copyright © 2023 JBoss by Red Hat. All rights reserved.