Search

Class RESTOperation

REST plug-in operation object

Attributes

Name Type Description
defaultContentType String The default content type of the content input for this operation (meaningful for operations with method PUT or POST)
host String Parent RESTHost of this operation
id String id
inParametersCount String The count of the input parameters (all parameters defined in the URL template) for this operation
method String HTTP method of this operation (GET, HEAD, PATCH, POST, PUT, OPTIONS, TRACE or DELETE)
name String Unique identifier of the operation
urlTemplate String The URL template for this operation (ex. /operation/{param1}?param2={param2})

Methods

Name Returns
addMandatoryHeaderParameter(String mandatoryHeaderParamName) void
addMandatoryPathParameter(String mandatoryPathParamName) void
addMandatoryQueryParameter(String mandatoryQueryParamName) void
addPreferredAcceptHeaderMediaType(String mediaType) void
addSupportedAcceptHeaderMediaType(String mediaType) void
addSupportedContentType(String supportedContentType) void
clone() RESTOperation
createRequest(String[] params, Object content) RESTRequest
getDefaultContentType() String
getHeaderParameters() String[]
getInParameters() String[]
getPathParamsCount() Number
getSupportedAcceptHeaderMediaTypes() String[]
getSupportedContentTypes() Set
isHeaderParamMandatory(String headerParamName) boolean
isPathParamMandatory(String pathParamName) boolean
isQueryParamMandatory(String queryParamName) boolean
newOperationFromThis() RESTOperation

Returned by

Method Returns
RESTHost.addOperation(RESTOperation operation) RESTOperation
RESTHost.getOperation(String id) RESTOperation
RESTHost.removeOperation(String id) RESTOperation
RESTHost.updateOperation(RESTOperation operation) RESTOperation
RESTHostManager.createTransientOperationFrom(RESTOperation restOperationPrototype) RESTOperation
RESTOperation.clone() RESTOperation
RESTOperation.newOperationFromThis() RESTOperation

Referenced in

Method Returns
RESTHost.addOperation(RESTOperation operation) RESTOperation
RESTHost.updateOperation(RESTOperation operation) RESTOperation
RESTHostManager.createTransientOperationFrom(RESTOperation restOperationPrototype) RESTOperation
RESTHostManager.createWorkflow(RESTOperation operation, String workflowName, WorkflowCategory category, String defaultContentType) Workflow
RESTHostManager.createWorkflowWithXsdInput(RESTOperation operation, String workflowName, WorkflowCategory category, String namespace, String elementName, String defaultContentType) Workflow