org.wso2.balana
Class AbstractTarget

java.lang.Object
  extended by org.wso2.balana.AbstractTarget
Direct Known Subclasses:
Target, Target

public abstract class AbstractTarget
extends Object

Represents the TargetType XML type in XACML. This defined as abstract, because there can be more than one implementation of TargetType. As an example, TargetType is considerably defer in XACML 2.0 and XACML 3.0 Therefore two implementations are used. The target is used to quickly identify whether the parent element (a policy set, policy, or rule) is applicable to a given request.


Constructor Summary
AbstractTarget()
           
 
Method Summary
abstract  String encode()
          Encodes this AbstractTarget into its XML form
abstract  void encode(StringBuilder builder)
          Encodes this AbstractTarget into its XML form and writes this out to the provided StringBuilder
abstract  MatchResult match(EvaluationCtx context)
          Determines whether this AbstractTarget matches the input request (whether it is applicable).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTarget

public AbstractTarget()
Method Detail

match

public abstract MatchResult match(EvaluationCtx context)
Determines whether this AbstractTarget matches the input request (whether it is applicable).

Parameters:
context - the representation of the request
Returns:
the result of trying to match the target and the request

encode

public abstract String encode()
Encodes this AbstractTarget into its XML form

Returns:
String

encode

public abstract void encode(StringBuilder builder)
Encodes this AbstractTarget into its XML form and writes this out to the provided StringBuilder

Parameters:
builder - string stream into which the XML-encoded data is written


Copyright © 2015 WSO2. All rights reserved.