org.jboss.security.xacml.interfaces
Interface ResponseContext

All Superinterfaces:
ContextMapOp, ElementMappingType
All Known Implementing Classes:
JBossResponseContext

public interface ResponseContext
extends ContextMapOp, ElementMappingType

Represents a XACML Response

Since:
Jul 6, 2007
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Method Summary
 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
 
Methods inherited from interface org.jboss.security.xacml.interfaces.ContextMapOp
get, set
 
Methods inherited from interface org.jboss.security.xacml.interfaces.ElementMappingType
asElement
 

Method Detail

getDecision

int getDecision()
Decision based on the evaluation of policies

Returns:
int value XACMLConstants.DECISION_PERMIT
See Also:
XACMLConstants

getResult

ResultType getResult()
Get the result

Returns:

getDocumentElement

Node getDocumentElement()
Return the element of the document from where the response was created if available Null if no parsing was involved

Returns:

readResponse

void readResponse(InputStream is)
                  throws Exception
Read a response from an input stream

Parameters:
is -
Throws:
Exception

readResponse

void readResponse(Node node)
                  throws IOException
Read a preparsed Node

Parameters:
node -
Throws:
IOException

marshall

void marshall(OutputStream os)
              throws IOException
Marshall the response context onto an Output Stream

Parameters:
os - OutputStream (System.out, ByteArrayOutputStream etc)
Throws:
IOException


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.