org.okiproject.serviceimpl.mit.rmissl
Class Client

java.lang.Object
  |
  +--org.okiproject.serviceimpl.mit.rmissl.Client
All Implemented Interfaces:
org.okiproject.serviceapi.rmi.Client, Remote, java.rmi.Remote

public class Client
extends java.lang.Object
implements org.okiproject.serviceapi.rmi.Client, Remote

Copyright (c) 2001 Massachusetts Institute of Technology

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

$Source: /cvs/oki/org/okiproject/serviceimpl/mit/doc/rmissl/org/okiproject/serviceimpl/mit/rmissl/Client.html,v $


Method Summary
 java.lang.Boolean authenticate(byte[] ticket)
           
static org.okiproject.serviceapi.rmi.Client create(java.lang.String host, java.lang.Integer port, java.lang.String service, java.lang.String server, org.okiproject.serviceapi.common.Agent forAgent)
           
 org.okiproject.serviceapi.common.Agent getForAgent()
          This method gets the Agent for whom the Client acts.
 java.lang.String getHost()
          This method gets the Host that this Client uses.
 java.lang.Integer getPort()
          This method gets the Port that this Client uses.
 java.lang.Object getResponse()
           
 java.lang.String getServer()
           
 java.lang.String getService()
          This method gets the Service that this Client uses.
 java.lang.Object invoke(java.io.Serializable object, java.lang.String methodName, java.lang.Class[] argTypes, java.lang.Object[] args)
          Given an object, a methodname, an array of method argument types, and an array of arguments, this method will invoke the method.
 java.lang.String test()
          The test method sends a test object to the Server which returns a string that indicates that the test was successful or throws an exception.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHost

public java.lang.String getHost()
Description copied from interface: org.okiproject.serviceapi.rmi.Client
This method gets the Host that this Client uses.
Specified by:
getHost in interface org.okiproject.serviceapi.rmi.Client

getPort

public java.lang.Integer getPort()
Description copied from interface: org.okiproject.serviceapi.rmi.Client
This method gets the Port that this Client uses.
Specified by:
getPort in interface org.okiproject.serviceapi.rmi.Client

getService

public java.lang.String getService()
Description copied from interface: org.okiproject.serviceapi.rmi.Client
This method gets the Service that this Client uses.
Specified by:
getService in interface org.okiproject.serviceapi.rmi.Client

getServer

public java.lang.String getServer()

getForAgent

public org.okiproject.serviceapi.common.Agent getForAgent()
Description copied from interface: org.okiproject.serviceapi.rmi.Client
This method gets the Agent for whom the Client acts.
Specified by:
getForAgent in interface org.okiproject.serviceapi.rmi.Client

getResponse

public java.lang.Object getResponse()

create

public static org.okiproject.serviceapi.rmi.Client create(java.lang.String host,
                                                          java.lang.Integer port,
                                                          java.lang.String service,
                                                          java.lang.String server,
                                                          org.okiproject.serviceapi.common.Agent forAgent)
                                                   throws java.lang.Throwable

authenticate

public java.lang.Boolean authenticate(byte[] ticket)
                               throws java.lang.Exception
Specified by:
authenticate in interface Remote

invoke

public java.lang.Object invoke(java.io.Serializable object,
                               java.lang.String methodName,
                               java.lang.Class[] argTypes,
                               java.lang.Object[] args)
                        throws java.lang.Exception
Description copied from interface: org.okiproject.serviceapi.rmi.Client
Given an object, a methodname, an array of method argument types, and an array of arguments, this method will invoke the method.
Specified by:
invoke in interface org.okiproject.serviceapi.rmi.Client
Following copied from interface: org.okiproject.serviceapi.rmi.Client
Returns:
the result of a successful invocation

test

public java.lang.String test()
                      throws java.lang.Exception
Description copied from interface: org.okiproject.serviceapi.rmi.Client
The test method sends a test object to the Server which returns a string that indicates that the test was successful or throws an exception.
Specified by:
test in interface org.okiproject.serviceapi.rmi.Client
Following copied from interface: org.okiproject.serviceapi.rmi.Client
Returns:
the result of a successful test