|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.planets_project.services.utils.ServiceUtils
public class ServiceUtils
A class to hold some utility functions for Planets Service developers.
Field Summary | |
---|---|
static javax.xml.ws.WebServiceFeature[] |
JAXWS_FEATURES
Standardised web service features - MTOM and Streaming. |
static int |
JAXWS_SIZE_THRESHOLD
Standard threshold before chunking data, currently 10 MB |
Method Summary | ||
---|---|---|
static java.util.Set<java.net.URI> |
asSet(java.net.URI... uris)
|
|
static double |
calculateDuration(long startTime,
long endTime)
|
|
static ServiceReport |
createErrorReport(java.lang.String message)
|
|
static ServiceReport |
createExceptionErrorReport(java.lang.String message,
java.lang.Exception e)
|
|
static ServiceReport |
createExceptionErrorReport(java.lang.String message,
java.lang.Exception e,
int errorType)
|
|
static MigrationPath[] |
createMigrationPathways(java.util.List<java.net.URI> inputFormats,
java.util.List<java.net.URI> outputFormats)
Creates a simple MigrationPath Matrix needed by most Migrate services. |
|
static
|
createService(javax.xml.namespace.QName interfaceName,
java.lang.Class<T> interfaceType,
java.net.URL wsdlLocation)
|
|
static
|
createService(ServiceDescription description)
|
|
static java.lang.String |
getSystemDateAndTimeFormatted()
Convenience method to get the current System date and time as a formatted String. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int JAXWS_SIZE_THRESHOLD
public static final javax.xml.ws.WebServiceFeature[] JAXWS_FEATURES
Method Detail |
---|
public static ServiceReport createExceptionErrorReport(java.lang.String message, java.lang.Exception e, int errorType)
message
- A message that described the error.e
- The Exception that caused the error - can be NULL.errorType
- The kind of error, ServiceReport.TOOL_ERROR, ServiceReport.INSTALLATION_ERROR, ...
public static ServiceReport createExceptionErrorReport(java.lang.String message, java.lang.Exception e)
message
- The messagee
- The exception
public static ServiceReport createErrorReport(java.lang.String message)
message
- The message
public static java.lang.String getSystemDateAndTimeFormatted()
public static double calculateDuration(long startTime, long endTime)
startTime
- the start timeendTime
- The end time
public static MigrationPath[] createMigrationPathways(java.util.List<java.net.URI> inputFormats, java.util.List<java.net.URI> outputFormats)
inputFormats
- List of URIs with possible InputformatsoutputFormats
- List of URIs with possible Outputformats
public static java.util.Set<java.net.URI> asSet(java.net.URI... uris)
uris
- The URIs
public static <T> T createService(javax.xml.namespace.QName interfaceName, java.lang.Class<T> interfaceType, java.net.URL wsdlLocation)
T
- The type of the implementation class to instantiateinterfaceName
- The QName of the service interface, e.g. Migrate.QNAMEinterfaceType
- The Class of the service interface, e.g. Migrate.classwsdlLocation
- The full URL of the WSDL for the service to create
public static <T> T createService(ServiceDescription description)
T
- The type of the service to createdescription
- The description to instantiate a service for. Needs endpoint and type set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |