org.gcube.contentmanagement.layerindependent.servicehelper
Class ServiceCommunication

java.lang.Object
  extended by org.gcube.contentmanagement.layerindependent.servicehelper.ServiceCommunication

public class ServiceCommunication
extends java.lang.Object

Contains constants for the communication with services in DILIGENT

Author:
michaelspringmann

Field Summary
static java.lang.String COLLECTION_MANAGEMENT_SERVICE_NAME
          The service name for ColMS as used in communication with DIS
static java.lang.String COLLECTION_MANAGEMENT_SERVICE_URL_SUFFIX
          Suffix of ColMS names in EPR
static java.lang.String CONTENT_MANAGEMENT_SERVICE_CLASS
          The service class for ContentManagement as used in communication with DIS
static java.lang.String CONTENT_MANAGEMENT_SERVICE_NAME
          The service name for CMS as used in communication with DIS
static java.lang.String CONTENT_MANAGEMENT_SERVICE_URL_SUFFIX
          Suffix of CMS names in EPR
static java.lang.String CONTENT_MANAGEMENT_URL_SUFFIX
          common suffix of all Content Management Services names in EPR
static java.lang.String GCUBE_SERVICE_URL_SUFFIX
          Prefix of Diligent Service names in EPR
static java.lang.String LOCAL_EPR_URL_PREFIX
          The start of URL for making local calls according to WS-Core Developer's Guide
static java.lang.String STORAGE_MANAGEMENT_SERVICE_NAME
          The service name for SMS as used in communication with DIS
static java.lang.String STORAGE_MANAGEMENT_SERVICE_PACKAGE_NAME
          The portype name for SMS as used in communication with DIS
static java.lang.String STORAGE_MANAGEMENT_SERVICE_PORTTYPE_NAME
          The portype name for SMS as used in communication with DIS
static java.lang.String STORAGE_MANAGEMENT_SERVICE_URL_SUFFIX
          Suffix of SMS names in EPR
static java.lang.String WS_CORE_SERVICE_URL_INFIX
          The part of the URL following the port that points to services
static java.lang.String WSDL_URL_SUFFIX
          The URL suffix to retrieve the WSDL of a service instead of performing a real operaiont
 
Constructor Summary
ServiceCommunication()
           
 
Method Summary
static java.lang.String getLocalURL(java.lang.String serviceSuffix)
          Generates a String representing the URL to a service EPR in the same container as defined in the current context using local calls
static java.lang.String getServiceHostBaseURL()
           
static java.lang.String getURL(java.lang.String host, int port, java.lang.String serviceSuffix)
          Generates a String representing the URL to a service EPR in the defined container running with nosec parameter (default in Diligent)
static java.lang.String getURL(java.lang.String host, int port, java.lang.String serviceSuffix, boolean containerStartsWithNosecParam)
          Generates a String representing the URL to a service EPR in the defined container
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_MANAGEMENT_SERVICE_CLASS

public static final java.lang.String CONTENT_MANAGEMENT_SERVICE_CLASS
The service class for ContentManagement as used in communication with DIS

See Also:
Constant Field Values

STORAGE_MANAGEMENT_SERVICE_NAME

public static final java.lang.String STORAGE_MANAGEMENT_SERVICE_NAME
The service name for SMS as used in communication with DIS

See Also:
Constant Field Values

STORAGE_MANAGEMENT_SERVICE_PORTTYPE_NAME

public static final java.lang.String STORAGE_MANAGEMENT_SERVICE_PORTTYPE_NAME
The portype name for SMS as used in communication with DIS

See Also:
Constant Field Values

STORAGE_MANAGEMENT_SERVICE_PACKAGE_NAME

public static final java.lang.String STORAGE_MANAGEMENT_SERVICE_PACKAGE_NAME
The portype name for SMS as used in communication with DIS

See Also:
Constant Field Values

COLLECTION_MANAGEMENT_SERVICE_NAME

public static final java.lang.String COLLECTION_MANAGEMENT_SERVICE_NAME
The service name for ColMS as used in communication with DIS

See Also:
Constant Field Values

CONTENT_MANAGEMENT_SERVICE_NAME

public static final java.lang.String CONTENT_MANAGEMENT_SERVICE_NAME
The service name for CMS as used in communication with DIS

See Also:
Constant Field Values

WS_CORE_SERVICE_URL_INFIX

public static final java.lang.String WS_CORE_SERVICE_URL_INFIX
The part of the URL following the port that points to services

See Also:
Constant Field Values

LOCAL_EPR_URL_PREFIX

public static final java.lang.String LOCAL_EPR_URL_PREFIX
The start of URL for making local calls according to WS-Core Developer's Guide

See Also:
Constant Field Values

GCUBE_SERVICE_URL_SUFFIX

public static final java.lang.String GCUBE_SERVICE_URL_SUFFIX
Prefix of Diligent Service names in EPR

See Also:
Constant Field Values

CONTENT_MANAGEMENT_URL_SUFFIX

public static final java.lang.String CONTENT_MANAGEMENT_URL_SUFFIX
common suffix of all Content Management Services names in EPR

See Also:
Constant Field Values

STORAGE_MANAGEMENT_SERVICE_URL_SUFFIX

public static final java.lang.String STORAGE_MANAGEMENT_SERVICE_URL_SUFFIX
Suffix of SMS names in EPR

See Also:
Constant Field Values

CONTENT_MANAGEMENT_SERVICE_URL_SUFFIX

public static final java.lang.String CONTENT_MANAGEMENT_SERVICE_URL_SUFFIX
Suffix of CMS names in EPR

See Also:
Constant Field Values

COLLECTION_MANAGEMENT_SERVICE_URL_SUFFIX

public static final java.lang.String COLLECTION_MANAGEMENT_SERVICE_URL_SUFFIX
Suffix of ColMS names in EPR

See Also:
Constant Field Values

WSDL_URL_SUFFIX

public static final java.lang.String WSDL_URL_SUFFIX
The URL suffix to retrieve the WSDL of a service instead of performing a real operaiont

See Also:
Constant Field Values
Constructor Detail

ServiceCommunication

public ServiceCommunication()
Method Detail

getLocalURL

public static java.lang.String getLocalURL(java.lang.String serviceSuffix)
Generates a String representing the URL to a service EPR in the same container as defined in the current context using local calls

Parameters:
serviceSuffix - the last part of the EPR that identifes the service
Returns:
a String representation of a local URL

getServiceHostBaseURL

public static java.lang.String getServiceHostBaseURL()
                                              throws java.io.IOException
Throws:
java.io.IOException

getURL

public static java.lang.String getURL(java.lang.String host,
                                      int port,
                                      java.lang.String serviceSuffix,
                                      boolean containerStartsWithNosecParam)
Generates a String representing the URL to a service EPR in the defined container

Parameters:
serviceSuffix - the last part of the EPR that identifes the service
host - the node / ip-address of the host running the container
port - the port used by the container
containerStartsWithNosecParam - if container was started without nosec, https: is used; if set to true, plain http: is used an any security is performed on higher layers
Returns:
a String representation of a local URL

getURL

public static java.lang.String getURL(java.lang.String host,
                                      int port,
                                      java.lang.String serviceSuffix)
Generates a String representing the URL to a service EPR in the defined container running with nosec parameter (default in Diligent)

Parameters:
serviceSuffix - the last part of the EPR that identifes the service
host - the node / ip-address of the host running the container
port - the port used by the container
Returns:
a String representation of a local URL