public class ServiceInvocationContext
extends java.lang.Object
Context information for a request to invoke a mashable. Context combines both information specific to this request plus registered information for the mashable, including the security profile, if any. ServiceInvocationContext is instantiated by Presto Service Access Engines for each invocation of a mashable.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INVOCATION_TYPE_DELETE
This HTTP method is not supported in Presto.
|
static java.lang.String |
INVOCATION_TYPE_GET
HTTP GET method.
|
static java.lang.String |
INVOCATION_TYPE_POST
HTTP POST method.
|
static java.lang.String |
INVOCATION_TYPE_PUT
This HTTP method is not supported in Presto.
|
static java.lang.String |
SERVICE_TYPE_ATOM
Atom web feeds
|
static java.lang.String |
SERVICE_TYPE_DATABASE
Database services
|
static java.lang.String |
SERVICE_TYPE_EXCEL
Spreadsheet services
|
static java.lang.String |
SERVICE_TYPE_MASHUP
Mashups
|
static java.lang.String |
SERVICE_TYPE_POJO
Internal only
|
static java.lang.String |
SERVICE_TYPE_REST
REST web services
|
static java.lang.String |
SERVICE_TYPE_RSS
RSS web feeds
|
static java.lang.String |
SERVICE_TYPE_SDO
Not applicable
|
static java.lang.String |
SERVICE_TYPE_SHAREPOINT
SharePoint list services
|
static java.lang.String |
SERVICE_TYPE_WSDL
WSDL web services
|
Constructor and Description |
---|
ServiceInvocationContext() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInvocationType()
Returns the invocation type (HTTP method) to
use for this invocation.
|
java.lang.String |
getOperationId()
Returns the operation ID for this invocation.
|
java.lang.String |
getProviderName()
Returns the provider name for this mashable.
|
SecurityProfile |
getSecurityProfile()
Returns the security profile for this mashable invocation.
|
java.lang.String |
getServiceId()
Returns the mashable ID for this invocation.
|
java.lang.String |
getServiceType()
Returns the service type for the mashable for
this invocation.
|
java.lang.String |
getServiceURL()
Returns the mashable endpoint for this invocation.
|
java.lang.String |
getSOAPAction()
Sets the SOAPAction when the service type is set to WSDL,
SOAPAction is a URI identifying the intent of the service,
or the operation name to invoke or used by firewalls to
filter SOAP messages
|
java.lang.String |
getWSSPolicyToken()
For WSDL mashables, returns the WSS Policy token to use for
this invocation.
|
boolean |
isRequiresAuthentication()
Determines if the request to the mashable for this invocation must
include authentication information.
|
boolean |
isRequiresWSSPolicy()
For WSDL mashables, determines if the request sent to
the web service requires a WSS Policy Token for authentication.
|
void |
setInvocationType(java.lang.String invType)
Sets the invocation type (HTTP method) to
use for this invocation.
|
void |
setOperationId(java.lang.String operationId)
Sets the operation ID for this invocation.
|
void |
setProviderName(java.lang.String providerName)
Sets the provider name for this mashable invocation.
|
void |
setRequiresAuthentication(boolean requiresAuthentication)
Sets a flag to require authentication information in the
request sent to the mashable for this invocation.
|
void |
setRequiresWSSPolicy(boolean requiresWSSPolicy)
For WSDL mashables, sets a flag, based on the WSDL, to require
a WSS Policy token be included in the request for this invocation.
|
void |
setSecurityProfile(SecurityProfile profile)
Sets the security profile for this mashable invocation.
|
void |
setServiceId(java.lang.String serviceId)
Sets the mashable ID for this invocation.
|
void |
setServiceType(java.lang.String serviceType)
Sets the service type for the mashable for this
invocation.
|
void |
setServiceURL(java.lang.String endpointURL)
Sets the mashable endpoing for this invocation.
|
void |
setSOAPAction(java.lang.String soapAction)
Returns the SOAPAction value if and only if the
service type is set to WSDL
|
void |
setWSSPolicyToken(java.lang.String policyToken)
For WSDL mashables, set the WSS Policy token for
this invocation.
|
java.lang.String |
toString() |
public static final java.lang.String INVOCATION_TYPE_GET
public static final java.lang.String INVOCATION_TYPE_POST
public static final java.lang.String INVOCATION_TYPE_PUT
public static final java.lang.String INVOCATION_TYPE_DELETE
public static final java.lang.String SERVICE_TYPE_REST
public static final java.lang.String SERVICE_TYPE_POJO
public static final java.lang.String SERVICE_TYPE_WSDL
public static final java.lang.String SERVICE_TYPE_DATABASE
public static final java.lang.String SERVICE_TYPE_SDO
public static final java.lang.String SERVICE_TYPE_RSS
public static final java.lang.String SERVICE_TYPE_ATOM
public static final java.lang.String SERVICE_TYPE_MASHUP
public static final java.lang.String SERVICE_TYPE_EXCEL
public static final java.lang.String SERVICE_TYPE_SHAREPOINT
public java.lang.String toString()
toString
in class java.lang.Object
public SecurityProfile getSecurityProfile()
public void setSecurityProfile(SecurityProfile profile)
profile
- The security profile for this mashable invocation.public java.lang.String getOperationId()
public void setOperationId(java.lang.String operationId)
operationId
- The ID of the mashable operation to invoke.public java.lang.String getProviderName()
public void setProviderName(java.lang.String providerName)
providerName
- The name of the provide for this mashable.public boolean isRequiresAuthentication()
public void setRequiresAuthentication(boolean requiresAuthentication)
public boolean isRequiresWSSPolicy()
public void setRequiresWSSPolicy(boolean requiresWSSPolicy)
public java.lang.String getServiceId()
public void setServiceId(java.lang.String serviceId)
serviceId
- The ID of the mashable to invoke.public java.lang.String getServiceType()
public void setServiceType(java.lang.String serviceType)
serviceType
- The type of this mashable, such as
REST or Database.public java.lang.String getWSSPolicyToken()
public void setWSSPolicyToken(java.lang.String policyToken)
policyToken
- The WSS Policy token to use with
this WSDL mashable invocation.public java.lang.String getServiceURL()
public void setServiceURL(java.lang.String endpointURL)
endpointURL
- The URL or endpoint to use to invoke
this mashable.public java.lang.String getInvocationType()
public void setInvocationType(java.lang.String invType)
public java.lang.String getSOAPAction()
public void setSOAPAction(java.lang.String soapAction)