org.apache.synapse.util.xpath
Class Base64EncodeFunction

java.lang.Object
  extended by org.apache.synapse.util.xpath.Base64EncodeFunction
All Implemented Interfaces:
Function

public class Base64EncodeFunction
extends Object
implements Function

Implements the XPath extension function synapse:base64Encode(string)


Field Summary
static String NULL_STRING
           
 
Constructor Summary
Base64EncodeFunction()
           
 
Method Summary
 Object call(Context context, List args)
          Returns the base64 encoded string value of the first argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_STRING

public static final String NULL_STRING
See Also:
Constant Field Values
Constructor Detail

Base64EncodeFunction

public Base64EncodeFunction()
Method Detail

call

public Object call(Context context,
                   List args)
            throws FunctionCallException
Returns the base64 encoded string value of the first argument.

Specified by:
call in interface Function
Parameters:
context - the context at the point in the expression when the function is called
args - arguments of the functions
Returns:
The string value of a property
Throws:
FunctionCallException


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.