com.sap.engine.interfaces.messaging.api

Class Service

java.lang.Object
  extended by com.sap.engine.interfaces.messaging.api.Service
All Implemented Interfaces:
Serializable, Comparable

public final class Service
extends Object
implements Serializable, Comparable

A Service, offered by a Party, can act on multiple processes (Actions). There are two services specified in each Message, one of the sending party (the from service) and one of the receiving party (the to service).

See Also:
Party, Action, Serialized Form

Constructor Summary
Service(String name)
          Constructs a new Service object with a name but no type.
Service(String name, String type)
          Constructs a new Service object with a name and a type.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 String getName()
          Returns the name of the Service.
 String getType()
          Returns the type of the Service.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Service

public Service(String name,
               String type)
Constructs a new Service object with a name and a type.

Parameters:
name - the service name.
type - the service type.

Service

public Service(String name)
Constructs a new Service object with a name but no type.

Parameters:
name - the service name.
Method Detail

getName

public String getName()
Returns the name of the Service.

Returns:
service name.

getType

public String getType()
Returns the type of the Service.

Returns:
service type.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] SAP_XIAF [sap.com] com.sap.aii.af.ifc.facade api BC-XI


Copyright 2014 SAP AG Complete Copyright Notice