uk.ac.mrc.hgmp.embreo
Class EmbreoPublicRequest

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

public class EmbreoPublicRequest
extends java.lang.Object


Constructor Summary
EmbreoPublicRequest(EmbreoParams mysettings, java.lang.String method)
          Makes a soap call to a public server, using the default service
EmbreoPublicRequest(EmbreoParams mysettings, java.lang.String service, java.lang.String method)
          Makes a soap call to a public server
EmbreoPublicRequest(EmbreoParams mysettings, java.lang.String service, java.lang.String method, java.util.Vector args)
          Makes a soap call to a public server
EmbreoPublicRequest(EmbreoParams mysettings, java.lang.String method, java.util.Vector args)
          Makes a soap call to a public 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.String 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

EmbreoPublicRequest

public EmbreoPublicRequest(EmbreoParams mysettings,
                           java.lang.String method)
Makes a soap call to a public server, using the default service

Parameters:
mysettings - EmbreoParams defining server parameters
method - String defining which method to call

EmbreoPublicRequest

public EmbreoPublicRequest(EmbreoParams mysettings,
                           java.lang.String method,
                           java.util.Vector args)
Makes a soap call to a public server, using the default service

Parameters:
mysettings - EmbreoParams defining server parameters
method - String defining which method to call
args - Vector of arguments

EmbreoPublicRequest

public EmbreoPublicRequest(EmbreoParams mysettings,
                           java.lang.String service,
                           java.lang.String method)
Makes a soap call to a public server

Parameters:
mysettings - EmbreoParams defining server parameters
service - String defining which service to call
method - String defining which method to call

EmbreoPublicRequest

public EmbreoPublicRequest(EmbreoParams mysettings,
                           java.lang.String service,
                           java.lang.String method,
                           java.util.Vector args)
Makes a soap call to a public 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
Method Detail

succeeded

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


getVal

public java.lang.String 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.