@Path(value="server/containers/{id}/forms")
public class FormResource
extends Object
| Constructor and Description |
|---|
FormResource() |
FormResource(FormServiceBase formServiceBase,
KieServerRegistry context) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getMediaTypeForFormContent(String contentType) |
javax.ws.rs.core.Response |
getProcessForm(javax.ws.rs.core.HttpHeaders headers,
String containerId,
String processId,
String language,
boolean filter,
String formType,
boolean marshallContent) |
javax.ws.rs.core.Response |
getTaskForm(javax.ws.rs.core.HttpHeaders headers,
String containerId,
Long taskId,
String language,
boolean filter,
String formType,
boolean marshallContent) |
protected String |
marshallFormContent(String formContent,
String formType,
javax.ws.rs.core.Variant variant) |
public FormResource()
public FormResource(FormServiceBase formServiceBase, KieServerRegistry context)
@GET
@Path(value="processes/{pId}")
@Produces(value={"application/xml","application/json"})
public javax.ws.rs.core.Response getProcessForm(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id")
String containerId,
@PathParam(value="pId")
String processId,
@QueryParam(value="lang") @DefaultValue(value="en")
String language,
@QueryParam(value="filter")
boolean filter,
@QueryParam(value="type") @DefaultValue(value="ANY")
String formType,
@QueryParam(value="marshallContent")
boolean marshallContent)
@GET
@Path(value="tasks/{tInstanceId}")
@Produces(value={"application/xml","application/json"})
public javax.ws.rs.core.Response getTaskForm(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id")
String containerId,
@PathParam(value="tInstanceId")
Long taskId,
@QueryParam(value="lang") @DefaultValue(value="en")
String language,
@QueryParam(value="filter")
boolean filter,
@QueryParam(value="type") @DefaultValue(value="ANY")
String formType,
@QueryParam(value="marshallContent")
boolean marshallContent)
protected String marshallFormContent(String formContent, String formType, javax.ws.rs.core.Variant variant) throws Exception
ExceptionCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.