@Path(value="xml/references") public class XMLBasedRefernces extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
XMLBasedRefernces() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createReference(String log_id,
String ref,
String title,
String refType) |
javax.ws.rs.core.Response |
defaultReferences() |
javax.ws.rs.core.Response |
getReferences(String id,
String refTableName) |
javax.ws.rs.core.Response |
updateReference(String log_id,
String ref,
String title,
String refType) |
@GET @Produces(value="application/xml") public javax.ws.rs.core.Response defaultReferences()
@Path(value="{id : (.+)?}/{refType : (.+)?}") @GET @Produces(value="application/xml") public javax.ws.rs.core.Response getReferences(@PathParam(value="id") String id, @PathParam(value="refType") String refTableName)
@POST @Path(value="/add") @Produces(value="application/xml") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response createReference(@FormParam(value="LogicalIdentifier") String log_id, @FormParam(value="Reference") String ref, @FormParam(value="Title") String title, @FormParam(value="referenceType") String refType) throws IOException
IOException
@POST @Path(value="/update") @Produces(value="application/xml") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response updateReference(@FormParam(value="LogicalIdentifier") String log_id, @FormParam(value="Reference") String ref, @FormParam(value="Title") String title, @FormParam(value="referenceType") String refType) throws IOException
IOException
Copyright © 2019. All rights reserved.