ca.infoway.messagebuilder.transport.mohawk
Class ServiceDefinition

Package class diagram package ServiceDefinition
java.lang.Object
  extended by ca.infoway.messagebuilder.transport.mohawk.ServiceDefinition

public class ServiceDefinition
extends Object

A registry for service definitions. The registry is keyed by intertcation id. A service definition contains a path and an action (i.e. submit).

Author:
Intelliware Development

Method Summary
 String getAction()
          Gets the action of this service definition.
 String getPath()
          Gets the path of this service definition.
static ServiceDefinition getService(String name)
          Obtains a service based on a name/interaction id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPath

public String getPath()

Gets the path of this service definition.

Returns:
the path of this service

getAction

public String getAction()

Gets the action of this service definition.

Returns:
the action of this service

getService

public static ServiceDefinition getService(String name)

Obtains a service based on a name/interaction id. If a service could not be found then returns null.

Parameters:
name - the name/interaction id to lookup the service under
Returns:
the service definition for the given name/interaction id


Copyright © 2013. All Rights Reserved.