uk.org.ogsadai.client
Class CoGUtil

java.lang.Object
  |
  +--uk.org.ogsadai.client.CoGUtil

public class CoGUtil
extends java.lang.Object

A wrapper (using reflection) around the Globus Java CoG org.globus.axis.util.Util class.

We need to call this class to configure Transport Level Security correctly. Wrapping the class and using reflection to call it allows us to eliminate the compile time dependency on this Globus specific JAR.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String CLASS_NAME
          Name of class we are wrapping
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private static java.lang.String METHOD_NAME
          Name of the method called
private static boolean mRegistrationAttempted
          Have we attempted registration?
private static CoGUtilAccessException mRegistrationException
          Exception that occurred if registration failed
private static boolean mRegistrationSuccessfull
          Has the registration been successfull?
private static java.lang.Class[] PARAM_TYPES
          Parameters types for the method
 
Constructor Summary
CoGUtil()
           
 
Method Summary
static CoGUtilAccessException getRegistrationException()
          Gets the exception associated with failed registration.
static boolean isRegistered()
          Has transport been successfully registered?
static void registerTransport()
          Register transport level security.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

CLASS_NAME

private static final java.lang.String CLASS_NAME
Name of class we are wrapping

See Also:
Constant Field Values

METHOD_NAME

private static final java.lang.String METHOD_NAME
Name of the method called

See Also:
Constant Field Values

PARAM_TYPES

private static final java.lang.Class[] PARAM_TYPES
Parameters types for the method


mRegistrationAttempted

private static boolean mRegistrationAttempted
Have we attempted registration?


mRegistrationSuccessfull

private static boolean mRegistrationSuccessfull
Has the registration been successfull?


mRegistrationException

private static CoGUtilAccessException mRegistrationException
Exception that occurred if registration failed

Constructor Detail

CoGUtil

public CoGUtil()
Method Detail

registerTransport

public static void registerTransport()
Register transport level security.

This effectively passes the method call onto the org.globus.axis.util.Util class. If any error occurs it can be detected using the isRegistered method.


isRegistered

public static boolean isRegistered()
Has transport been successfully registered?

Returns:
true if registration was successfull, false otherwise.

getRegistrationException

public static CoGUtilAccessException getRegistrationException()
Gets the exception associated with failed registration.

Returns:
the exception thrown when registration failed, or null if registration did not fail.