public class ServiceInfo extends Object implements Comparable<ServiceInfo>
Java class represents the service information.| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceInfo.Address
This
Java class defines the URL of an SAP CC service. |
static class |
ServiceInfo.ServiceAvailability
This
Java class |
static class |
ServiceInfo.ServiceInfoSecurity
This
enumeration defines the security information: off, one way, or dual. |
static class |
ServiceInfo.ServiceInfoType
This
enumeration lists all the types of communication services. |
| Modifier and Type | Field and Description |
|---|---|
static ServiceInfo.ServiceAvailability[] |
ALL_FORBIDDEN
This service is forbidden for all the instances.
|
static ServiceInfo.ServiceAvailability[] |
ALL_MANDATORY
This service is mandatory for all the instances in the SAP CC system.
|
static ServiceInfo.ServiceAvailability[] |
ALL_OPTIONAL
This service is optional for all the instances.
|
static int |
NO_DEFINED_PORT
Used if no port is defined.
|
static String |
TAG_NAME
The XML tag name of this class: "serviceInfo"
|
| Constructor and Description |
|---|
ServiceInfo()
Builds an empty
ServiceInfo instance. |
ServiceInfo(ServiceInfo.ServiceInfoType serviceInfoType) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ServiceInfo o) |
ServiceInfo.Address |
getAddress() |
ServiceInfo.ServiceInfoSecurity |
getServiceInfoSecurity() |
ServiceInfo.ServiceInfoType |
getServiceInfoType() |
URL |
getURL()
Returns the URL of the service.
|
boolean |
isAvailable()
Indicates if the service is available, i.e.
|
boolean |
isEnabled()
Indicates if the service is enabled, i.e.
|
void |
setServiceInfoSecurity(ServiceInfo.ServiceInfoSecurity serviceInfoSecurity) |
void |
setServiceInfoType(ServiceInfo.ServiceInfoType serviceInfoType) |
public static final String TAG_NAME
public static final int NO_DEFINED_PORT
public static final ServiceInfo.ServiceAvailability[] ALL_MANDATORY
public static final ServiceInfo.ServiceAvailability[] ALL_OPTIONAL
public static final ServiceInfo.ServiceAvailability[] ALL_FORBIDDEN
public ServiceInfo()
ServiceInfo instance.public ServiceInfo(ServiceInfo.ServiceInfoType serviceInfoType)
public ServiceInfo.ServiceInfoType getServiceInfoType()
public void setServiceInfoType(ServiceInfo.ServiceInfoType serviceInfoType)
public ServiceInfo.ServiceInfoSecurity getServiceInfoSecurity()
public void setServiceInfoSecurity(ServiceInfo.ServiceInfoSecurity serviceInfoSecurity)
public ServiceInfo.Address getAddress()
public boolean isEnabled()
true if service is enabled, false otherwisepublic boolean isAvailable()
true if service is available, false otherwisepublic URL getURL()
null otherwisepublic int compareTo(ServiceInfo o)
compareTo in interface Comparable<ServiceInfo>