public interface Service
If a data transformer has been defined to convert data on behalf of the service, it is expected that data conversion will be done for both input and output payloads by the defined data transformation service.
If a data transformer has NOT been defined, input and output data conversion is expected to done by the service.
Modifier and Type | Interface and Description |
---|---|
static class |
Service.CallerType
Enumeration for how the service provider is being invoked, either from a Service or an API.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
copyright_notice |
static java.lang.String |
IBM_ZOS_CONNECT_CALLER
Deprecated.
Replaced by
Data.getRequestType() . |
static java.lang.String |
IBM_ZOS_CONNECT_ENCODING
Constant for the key in the requestStateMap for encoding information.
|
static java.lang.String |
IBM_ZOS_CONNECT_TIMEOUT
Constant for the key in the requestStateMap for the time remaining when a timeout has been specified on an
asynchronous request.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getData()
Returns a map of JSON object compatible key value pairs representing information about the service.
|
java.lang.String |
getProviderName()
Returns the service provider's name.
|
com.ibm.json.java.JSONObject |
getRequestSchema()
Queries the service for the data transformation request schema used.
|
com.ibm.json.java.JSONObject |
getResponseSchema()
Queries the service for the data transformation response schema used.
|
java.util.List<ServiceArchiveData> |
getServiceArchiveData()
Deprecated.
The z/OS Connect Enterprise Edition build toolkit should be used to generate service archives.
|
com.ibm.json.java.JSONObject |
getStatistics()
Queries the service for statistic data.
|
void |
invoke(java.util.Map<java.lang.Object,java.lang.Object> requestStateMap,
HttpZosConnectRequest httpZosConnectRequest,
RequestData requestData,
ResponseData responseData)
Processes a service invocation action.
|
ServiceStatus |
start()
Notifies the service that the server should be started.
|
ServiceStatus |
status()
Queries the service for its status.
|
ServiceStatus |
stop()
Notifies the service that a service should be stopped.
|
static final java.lang.String copyright_notice
@Deprecated static final java.lang.String IBM_ZOS_CONNECT_CALLER
Data.getRequestType()
.static final java.lang.String IBM_ZOS_CONNECT_ENCODING
static final java.lang.String IBM_ZOS_CONNECT_TIMEOUT
java.lang.String getProviderName()
java.util.Map<java.lang.String,java.lang.Object> getData() throws ServiceException
ServiceException
- If there is a processing error.com.ibm.json.java.JSONObject getRequestSchema() throws ServiceException
ServiceException
- If there is a processing error.com.ibm.json.java.JSONObject getResponseSchema() throws ServiceException
ServiceException
- If there is a processing error.com.ibm.json.java.JSONObject getStatistics() throws ServiceException
ServiceException
- If there is a processing error.ServiceStatus status() throws ServiceException
ServiceException
- If there is a processing error.void invoke(java.util.Map<java.lang.Object,java.lang.Object> requestStateMap, HttpZosConnectRequest httpZosConnectRequest, RequestData requestData, ResponseData responseData) throws ServiceException
requestStateMap
- A map object that holds implementor data that can be retrieved and/or updated by artifacts
that have a reference to it (e.g. Interceptor.preInvoke(), Inteceptor.postInvoke()). z/OS Connect
creates a new map and makes it available to the consuming artifacts per request. Prefix key strings
with your own unique identifier to avoid clashes with those created by other interceptor providers.
Key string entries starting with "IBM_ZOS_CONNECT" are reserved for z/OS Connect use.httpZosConnectRequest
- A z/OS Connect representation of a HTTP servlet request.requestData
- The request object to retrieve request data from.responseData
- The response object to set response data to.ServiceException
- If there is a processing error.ServiceStatus stop() throws ServiceException
ServiceException
- If there is a processing error.ServiceStatus start() throws ServiceException
ServiceException
- If there is a processing error.@Deprecated java.util.List<ServiceArchiveData> getServiceArchiveData() throws ServiceException
ServiceArchiveProperty
and ServiceArchiveObject
for concrete implementations of
ServiceArchiveData
. null
if the Service
provider does not support service archive creation.ServiceException
- If there is a processing error.