public interface ServiceInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
EXECUTION_MODE_ASYNC |
static java.lang.String |
EXECUTION_MODE_ASYNC_ONEWAY |
static java.lang.String |
EXECUTION_MODE_SYNC |
static java.lang.String |
EXECUTION_MODE_SYNC_ONEWAY |
static java.lang.String |
EXECUTION_MODE_SYNC_QUEUE_ON_ERROR |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
void |
activateRequestor(java.lang.Object aPassivatedContext)
Activate the requestor used to process the service request.
|
void |
addRequestAttachment(java.lang.String aKey,
java.lang.String aVal)
Add request attachment values for the service to interpret.
|
void |
addRequestParameter(java.lang.Object aVal)
Add a request parameter value for the service to interpret.
|
void |
addRequestParameters(java.util.List aList)
Add request parameter values for the service to interpret.
|
void |
closeRequestor()
Finalize the requestor used to process the service request.
|
java.lang.String |
getErrorMessage()
Get the service error message following a service failure.
|
java.lang.Throwable |
getExceptionObject()
Retrieve service exception object following a service failure.
|
java.lang.String |
getRequestorId()
Get the service requestor ID value.
|
int |
getResponseHeaderCount()
Get the number of response header values.
|
java.util.Iterator |
getResponseHeaderKeys()
Get the list of response header keys.
|
java.lang.String |
getResponseHeaderValue(java.lang.String aKey)
Get the specified response header value.
|
int |
getResponseParameterCount()
Get the number of response parameter values.
|
int |
getResponseParameterLength(int aIndex)
Get the specified response parameter length.
|
java.util.Iterator |
getResponseParameterLengths()
Get the list of response parameter lengths.
|
java.lang.String |
getResponseParameterName(int aIndex)
Get the specified response parameter name.
|
java.util.Iterator |
getResponseParameterNames()
Get the list of response parameter names.
|
int |
getResponseParameterOffset(int aIndex)
Get the specified response parameter offset.
|
java.util.Iterator |
getResponseParameterOffsets()
Get the list of response parameter offsets.
|
java.lang.String |
getResponseParameterType(int aIndex)
Get the specified response parameter type.
|
java.util.Iterator |
getResponseParameterTypes()
Get the list of response parameter types.
|
java.lang.Object |
getResponseParameterValue(int aIndex)
Get the specified response parameter value.
|
java.util.Iterator |
getResponseParameterValues()
Get the list of response parameter values.
|
int |
getResponsePropertyCount()
Get the number of response property values.
|
java.util.Iterator |
getResponsePropertyKeys()
Get the list of response property keys.
|
java.lang.Object |
getResponsePropertyValue(java.lang.String aKey)
Get the specified response property value.
|
java.lang.String |
getResponseType()
Get the response type identifier specified by the service rule.
|
java.lang.String |
getServiceClass()
Get the service class name.
|
java.lang.String |
getServiceMethod()
Get the service method name.
|
java.lang.String |
getServicePackage()
Get the service package name.
|
java.lang.String |
getServiceType()
Get the service type value.
|
java.lang.Object |
passivateRequestor()
Passivate the requestor used to process the service request.
|
void |
processRequest()
Perform service request processing.
|
boolean |
requestorIsValid()
Deprecated.
Check if the cached requestor ID value is still valid
|
void |
setCredentials(java.lang.String aUserName,
java.lang.String aPassword)
Set the username and password credentials for the service.
|
void |
setInitialParameters(java.util.HashMap aInitParams)
Set initialization parameters.
|
void |
setRequestHeader(java.lang.String aKey,
java.lang.String aVal)
Set a request header value for the service to interpret.
|
void |
setRequestorId(java.lang.String aRequestorId)
Set the service requestor ID value.
|
void |
setRequestProperty(java.lang.String aKey,
java.lang.Object aVal)
Set a request property value for the service to interpret.
|
void |
setServiceClass(java.lang.String aServiceClass)
Set the service class name.
|
void |
setServiceMethod(java.lang.String aServiceMethod)
Set the service method name.
|
void |
setServicePackage(java.lang.String aServicePackage)
Set the service package name.
|
void |
setServiceType(java.lang.String aServiceType)
Set the service type value.
|
void |
setTransacted(boolean isTransacted)
Specify whether the requestor should perform database actions
(commit or rollback) after processing a service request.
|
boolean |
statusIsGood()
Check the status of a completed service request.
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
static final java.lang.String EXECUTION_MODE_ASYNC
static final java.lang.String EXECUTION_MODE_ASYNC_ONEWAY
static final java.lang.String EXECUTION_MODE_SYNC
static final java.lang.String EXECUTION_MODE_SYNC_ONEWAY
static final java.lang.String EXECUTION_MODE_SYNC_QUEUE_ON_ERROR
void setServiceType(java.lang.String aServiceType)
aServiceType
- the service type valuejava.lang.String getServiceType()
void setServicePackage(java.lang.String aServicePackage)
aServicePackage
- the service package namejava.lang.String getServicePackage()
void setServiceClass(java.lang.String aServiceClass)
aServiceClass
- the service class namejava.lang.String getServiceClass()
void setServiceMethod(java.lang.String aServiceMethod)
aServiceMethod
- the service method namejava.lang.String getServiceMethod()
void setInitialParameters(java.util.HashMap aInitParams)
aInitParams
- HashMap of initialization parameter valuesvoid setCredentials(java.lang.String aUserName, java.lang.String aPassword)
aUserName
- the username valueaPassword
- the password value, un-encryptedvoid setTransacted(boolean isTransacted)
isTransacted
- flag for performing database actionsvoid setRequestHeader(java.lang.String aKey, java.lang.String aVal)
aKey
- the key of the request header valueaVal
- the request header valuevoid setRequestProperty(java.lang.String aKey, java.lang.Object aVal)
aKey
- the key of the request property valueaVal
- the request property valuevoid addRequestParameter(java.lang.Object aVal)
aVal
- the request parameter valuevoid addRequestParameters(java.util.List aList)
aList
- a list of request parameter valuesvoid addRequestAttachment(java.lang.String aKey, java.lang.String aVal)
aKey
- the key of the request attachment valueaVal
- the request attachment valuevoid processRequest()
boolean statusIsGood()
java.lang.String getErrorMessage()
java.lang.Throwable getExceptionObject()
java.lang.String getResponseType()
int getResponseHeaderCount()
java.util.Iterator getResponseHeaderKeys()
java.lang.String getResponseHeaderValue(java.lang.String aKey)
aKey
- the key of the response header valueint getResponsePropertyCount()
java.util.Iterator getResponsePropertyKeys()
java.lang.Object getResponsePropertyValue(java.lang.String aKey)
aKey
- the key of the response property valueint getResponseParameterCount()
java.lang.Object getResponseParameterValue(int aIndex)
aIndex
- the index of the response parameter valuejava.util.Iterator getResponseParameterValues()
java.lang.String getResponseParameterName(int aIndex)
aIndex
- the index of the response parameter namejava.util.Iterator getResponseParameterNames()
java.lang.String getResponseParameterType(int aIndex)
aIndex
- the index of the response parameter typejava.util.Iterator getResponseParameterTypes()
int getResponseParameterOffset(int aIndex)
aIndex
- the index of the response parameter offsetjava.util.Iterator getResponseParameterOffsets()
int getResponseParameterLength(int aIndex)
aIndex
- the index of the response parameter lengthjava.util.Iterator getResponseParameterLengths()
void setRequestorId(java.lang.String aRequestorId)
aRequestorId
- the service requestor ID valuejava.lang.String getRequestorId()
boolean requestorIsValid()
java.lang.Object passivateRequestor()
void activateRequestor(java.lang.Object aPassivatedContext)
aPassivatedContext
- context data for activating the requestorvoid closeRequestor()
Copyright © 2018 Pegasystems Inc. All Rights Reserved.