uk.ac.mrc.hgmp.embreo
Class EmbreoPrivateRequest

java.lang.Object
  |
  +--uk.ac.mrc.hgmp.embreo.EmbreoPrivateRequest

public class EmbreoPrivateRequest
extends java.lang.Object


Constructor Summary
EmbreoPrivateRequest(EmbreoParams mysettings, java.lang.String method)
          Make a soap call to a private server, using the default service
EmbreoPrivateRequest(EmbreoParams mysettings, java.lang.String service, java.lang.String method)
          Make a soap call to a private server
EmbreoPrivateRequest(EmbreoParams mysettings, java.lang.String service, java.lang.String method, java.util.Vector args)
          Make a soap call to a private server
EmbreoPrivateRequest(EmbreoParams mysettings, java.lang.String method, java.util.Vector args)
          Make a soap call to a private server, using the default service
 
Method Summary
 java.util.Hashtable getHash()
          The hash returned by the embreo call.
 java.lang.String getResult()
          The result of the embreo call.
 java.lang.Object getVal(java.lang.String val)
          Gets an element out of the embreo result hash
 boolean succeeded()
          Whether the call succeeded (eventually) or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbreoPrivateRequest

public EmbreoPrivateRequest(EmbreoParams mysettings,
                            java.lang.String method)
                     throws EmbreoAuthException
Make a soap call to a private server, using the default service

Parameters:
mysettings - EmbreoParams defining server parameters
method - String defining which method to call
Throws:
EmbreoAuthException - If authentication fails

EmbreoPrivateRequest

public EmbreoPrivateRequest(EmbreoParams mysettings,
                            java.lang.String method,
                            java.util.Vector args)
                     throws EmbreoAuthException
Make a soap call to a private server, using the default service

Parameters:
mysettings - EmbreoParams defining server parameters
method - String defining which method to call
args - Vector of arguments
Throws:
EmbreoAuthException - If authentication fails

EmbreoPrivateRequest

public EmbreoPrivateRequest(EmbreoParams mysettings,
                            java.lang.String service,
                            java.lang.String method)
                     throws EmbreoAuthException
Make a soap call to a private server

Parameters:
mysettings - EmbreoParams defining server parameters
service - String defining which service to call
method - String defining which method to call
Throws:
EmbreoAuthException - If authentication fails

EmbreoPrivateRequest

public EmbreoPrivateRequest(EmbreoParams mysettings,
                            java.lang.String service,
                            java.lang.String method,
                            java.util.Vector args)
                     throws EmbreoAuthException
Make a soap call to a private server

Parameters:
mysettings - EmbreoParams defining server parameters
service - String defining which service to call
method - String defining which method to call
args - Vector of arguments
Throws:
EmbreoAuthException - If authentication fails
Method Detail

succeeded

public boolean succeeded()
Whether the call succeeded (eventually) or not


getVal

public java.lang.Object getVal(java.lang.String val)
Gets an element out of the embreo result hash

Parameters:
val - The key to look up
Returns:
Either the element, or an empty String if there isn't an element that matches the key

getResult

public java.lang.String getResult()
The result of the embreo call. This is the first element that is returned. Only useful for server methods that return a simple value.


getHash

public java.util.Hashtable getHash()
The hash returned by the embreo call. We either return a hash or a simple String.