|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.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 Set<URI> |
asSet(URI... uris)
|
|
static double |
calculateDuration(long startTime,
long endTime)
|
|
static ServiceReport |
createErrorReport(String message)
|
|
static ServiceReport |
createExceptionErrorReport(String message,
Exception e)
|
|
static ServiceReport |
createExceptionErrorReport(String message,
Exception e,
int errorType)
|
|
static MigrationPath[] |
createMigrationPathways(List<URI> inputFormats,
List<URI> outputFormats)
Creates a simple MigrationPath Matrix needed by most Migrate services. |
|
static
|
createService(QName interfaceName,
Class<T> interfaceType,
URL wsdlLocation)
|
|
static
|
createService(ServiceDescription description)
|
|
static 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(String message, 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(String message, Exception e)
message
- The messagee
- The exception
public static ServiceReport createErrorReport(String message)
message
- The message
public static String getSystemDateAndTimeFormatted()
public static double calculateDuration(long startTime, long endTime)
startTime
- the start timeendTime
- The end time
public static MigrationPath[] createMigrationPathways(List<URI> inputFormats, List<URI> outputFormats)
inputFormats
- List of URIs with possible InputformatsoutputFormats
- List of URIs with possible Outputformats
public static Set<URI> asSet(URI... uris)
uris
- The URIs
public static <T> T createService(QName interfaceName, Class<T> interfaceType, 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 |