org.jboss.security.xacml.sunxacml.cond
Class URLStringCatFunction

java.lang.Object
  extended by org.jboss.security.xacml.sunxacml.cond.FunctionBase
      extended by org.jboss.security.xacml.sunxacml.cond.URLStringCatFunction
All Implemented Interfaces:
Expression, Function

public class URLStringCatFunction
extends FunctionBase

Represents the XACML 2.0 url-string-concatenate function.

Since:
2.0
Author:
Seth Proctor

Field Summary
static String NAME_URL_STRING_CONCATENATE
          Standard identifier for the url-string-concatenate function.
 
Fields inherited from class org.jboss.security.xacml.sunxacml.cond.FunctionBase
FUNCTION_NS, FUNCTION_NS_2
 
Constructor Summary
URLStringCatFunction()
          Creates an instance of this function.
 
Method Summary
 void checkInputs(List inputs)
          Checks the inputs of this function.
 void checkInputsNoBag(List inputs)
          Checks the inputs of this function assuming no parameters are bags.
 EvaluationResult evaluate(List inputs, EvaluationCtx context)
          Evaluates the function given the input data.
 
Methods inherited from class org.jboss.security.xacml.sunxacml.cond.FunctionBase
encode, encode, evalArgs, getFunctionId, getFunctionName, getIdentifier, getReturnType, getReturnTypeAsString, getType, makeProcessingError, returnsBag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_URL_STRING_CONCATENATE

public static final String NAME_URL_STRING_CONCATENATE
Standard identifier for the url-string-concatenate function.

See Also:
Constant Field Values
Constructor Detail

URLStringCatFunction

public URLStringCatFunction()
Creates an instance of this function.

Method Detail

checkInputs

public void checkInputs(List inputs)
                 throws IllegalArgumentException
Checks the inputs of this function.

Specified by:
checkInputs in interface Function
Overrides:
checkInputs in class FunctionBase
Parameters:
inputs - a List> of Evaluatables
Throws:
IllegalArgumentException - if the inputs won't work

checkInputsNoBag

public void checkInputsNoBag(List inputs)
                      throws IllegalArgumentException
Checks the inputs of this function assuming no parameters are bags.

Specified by:
checkInputsNoBag in interface Function
Overrides:
checkInputsNoBag in class FunctionBase
Parameters:
inputs - a List> of Evaluatables
Throws:
IllegalArgumentException - if the inputs won't work

evaluate

public EvaluationResult evaluate(List inputs,
                                 EvaluationCtx context)
Evaluates the function given the input data. This function expects an AnyURIAttribute followed by one or more StringAttributes, and returns an AnyURIAttribute.

Parameters:
inputs - the input agrument list
context - the representation of the request
Returns:
the result of evaluation


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