@Path(value="server/documents") public class DocumentResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
DocumentResource() |
DocumentResource(DocumentServiceBase documentServiceBase,
KieServerRegistry context) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createDocument(javax.ws.rs.core.HttpHeaders headers,
String payload) |
javax.ws.rs.core.Response |
deleteDocument(javax.ws.rs.core.HttpHeaders headers,
String documentId) |
javax.ws.rs.core.Response |
getDocument(javax.ws.rs.core.HttpHeaders headers,
String documentId) |
javax.ws.rs.core.Response |
getDocumentContent(javax.ws.rs.core.HttpHeaders headers,
String documentId) |
javax.ws.rs.core.Response |
listDocuments(javax.ws.rs.core.HttpHeaders headers,
Integer page,
Integer pageSize) |
javax.ws.rs.core.Response |
updateDocument(javax.ws.rs.core.HttpHeaders headers,
String documentId,
String payload) |
public DocumentResource()
public DocumentResource(DocumentServiceBase documentServiceBase, KieServerRegistry context)
@GET
@Path(value="{documentId}/content")
@Produces(value="application/octet-stream")
public javax.ws.rs.core.Response getDocumentContent(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="documentId")
String documentId)
@GET
@Path(value="{documentId}")
@Produces(value={"application/json","application/xml"})
public javax.ws.rs.core.Response getDocument(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="documentId")
String documentId)
@GET
@Produces(value={"application/json","application/xml"})
public javax.ws.rs.core.Response listDocuments(@Context
javax.ws.rs.core.HttpHeaders headers,
@QueryParam(value="page") @DefaultValue(value="0")
Integer page,
@QueryParam(value="pageSize") @DefaultValue(value="10")
Integer pageSize)
@POST
@Produces(value={"application/json","application/xml"})
@Consumes(value={"application/json","application/xml"})
public javax.ws.rs.core.Response createDocument(@Context
javax.ws.rs.core.HttpHeaders headers,
String payload)
@PUT
@Path(value="{documentId}")
@Produces(value={"application/json","application/xml"})
@Consumes(value={"application/json","application/xml"})
public javax.ws.rs.core.Response updateDocument(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="documentId")
String documentId,
String payload)
@DELETE
@Path(value="{documentId}")
@Produces(value={"application/json","application/xml"})
public javax.ws.rs.core.Response deleteDocument(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="documentId")
String documentId)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.