uk.org.ogsadai.common
Class Base64Provider

java.lang.Object
  |
  +--uk.org.ogsadai.common.Base64Provider

public class Base64Provider
extends java.lang.Object

This class holds the Base64 implementation for the particular platform OGSA-DAI is running on. This must be set up in the platform's configurator.

Author:
The OGSA-DAI Project Team

Constructor Summary
Base64Provider()
           
 
Method Summary
static Base64 getBase64()
          Gets the Base64 implementation for the platform OGSA-DAI is running on.
static void setBase64(Base64 base64Impl)
          Sets the Base64 implementation for the platform OGSA-DAI is running on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64Provider

public Base64Provider()
Method Detail

getBase64

public static Base64 getBase64()
                        throws CommonSystemException
Gets the Base64 implementation for the platform OGSA-DAI is running on.

Returns:
a Base64 implementation
Throws:
CommonSystemException - if the implementation hasn't been set up.

setBase64

public static void setBase64(Base64 base64Impl)
Sets the Base64 implementation for the platform OGSA-DAI is running on. This method only needs to be called by the platform's configurator and can only be set once.

Parameters:
base64Impl - the Base64 implementation.