org.gcube.textextraction.utils
Class ServiceUtils
java.lang.Object
org.gcube.textextraction.utils.ServiceUtils
public class ServiceUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceUtils
public ServiceUtils()
Init
public static void Init(java.lang.String scope)
throws EnvironmentValidationException
- Throws:
EnvironmentValidationException
GetStringFilePayload
public static java.lang.String GetStringFilePayload(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
GetByteFilePayload
public static byte[] GetByteFilePayload(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
GetWorkflowEngineEndpoint
public static java.lang.String GetWorkflowEngineEndpoint(java.lang.String Scope)
throws java.lang.Exception
- Throws:
java.lang.Exception
GetWorkflowEnginePortType
public static WorkflowEngineServicePortType GetWorkflowEnginePortType(java.lang.String Scope,
java.lang.String endpoint)
throws java.lang.Exception
- Throws:
java.lang.Exception
GetWorkflowEngineURL
public static java.lang.String GetWorkflowEngineURL(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
GetWorkflowEngineExecutionID
public static java.lang.String GetWorkflowEngineExecutionID(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
GetWorkflowEngineExecutionScope
public static java.lang.String GetWorkflowEngineExecutionScope(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
getStringDate
public static java.lang.String getStringDate()
fileExists
public static boolean fileExists(java.lang.String filename)
findTextExtractionJob
public static java.lang.String findTextExtractionJob()
getEPRsForService
public static java.lang.String[] getEPRsForService(java.lang.String serviceClass,
java.lang.String serviceName,
java.lang.String type,
java.lang.String scope)
throws MalformedScopeExpressionException,
java.lang.Exception
- Throws:
MalformedScopeExpressionException
java.lang.Exception
main
public void main()