|
jBPM distribution 6.0.0.CR4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler
org.jbpm.process.workitem.rest.RESTWorkItemHandler
public class RESTWorkItemHandler
WorkItemHandler that is capable of interacting with REST service. Supports both types of services secured (that requires authentication) and open (no authentication). Authentication methods currently supported:
Nested Class Summary | |
---|---|
static class |
RESTWorkItemHandler.AuthenticationType
|
Field Summary |
---|
Fields inherited from class org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler |
---|
logThrownException |
Constructor Summary | |
---|---|
RESTWorkItemHandler()
Used when no authentication is required |
|
RESTWorkItemHandler(String username,
String password)
Dedicated constructor when BASIC authentication method shall be used |
|
RESTWorkItemHandler(String username,
String password,
String authUrl)
Dedicated constructor when FORM BASED authentication method shall be used |
Method Summary | |
---|---|
void |
abortWorkItem(WorkItem workItem,
WorkItemManager manager)
The given work item should be aborted. |
protected void |
doAuthorization(org.apache.commons.httpclient.HttpClient httpclient,
org.apache.commons.httpclient.HttpMethod method,
Map<String,Object> params)
|
void |
executeWorkItem(WorkItem workItem,
WorkItemManager manager)
The given work item should be executed. |
String |
getAuthUrl()
|
protected void |
postProcessResult(String result,
Map<String,Object> results)
|
protected void |
setBody(org.apache.commons.httpclient.HttpMethod theMethod,
Map<String,Object> params)
|
Methods inherited from class org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler |
---|
handleException, handleException, setLogThrownException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RESTWorkItemHandler()
public RESTWorkItemHandler(String username, String password)
username
- - user name to be used for authenticationpassword
- - password to be used for authenticationpublic RESTWorkItemHandler(String username, String password, String authUrl)
username
- - user name to be used for authenticationpassword
- - password to be used for authenticationauthUrl
- Method Detail |
---|
public String getAuthUrl()
public void executeWorkItem(WorkItem workItem, WorkItemManager manager)
WorkItemHandler
workItem
- the work item that should be executedmanager
- the manager that requested the work item to be executedprotected void setBody(org.apache.commons.httpclient.HttpMethod theMethod, Map<String,Object> params)
protected void postProcessResult(String result, Map<String,Object> results)
protected void doAuthorization(org.apache.commons.httpclient.HttpClient httpclient, org.apache.commons.httpclient.HttpMethod method, Map<String,Object> params)
public void abortWorkItem(WorkItem workItem, WorkItemManager manager)
WorkItemHandler
workItem
- the work item that should be abortedmanager
- the manager that requested the work item to be aborted
|
jBPM distribution 6.0.0.CR4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |