org.opentox.pol
Interface PolService

Package class diagram package PolService
All Known Implementing Classes:
PolServiceImpl

public interface PolService


Method Summary
 javax.ws.rs.core.Response createPol(String subjectId, javax.ws.rs.core.UriInfo uriInfo, InputStream s)
          Create a Pol resource.
 javax.ws.rs.core.Response deletePol(String subjectId, String id)
          Delete a Book resource.
 javax.ws.rs.core.Response getPolID(String subjectId, String id, String uri, String polnames)
          Read a Pol resource.
 

Method Detail

createPol

javax.ws.rs.core.Response createPol(@HeaderParam(value="subjectid")
                                    String subjectId,
                                    @Context
                                    javax.ws.rs.core.UriInfo uriInfo,
                                    InputStream s)
                                    throws IOException,
                                           javax.ws.rs.WebApplicationException
Create a Pol resource. A client issues a POST /pols Content-Type: application/xml request to send XML representation of the Pol resource to be created.

Parameters:
is - XML representation of the new pol
Returns:
the response to be sent to the client
Throws:
javax.ws.rs.WebApplicationException
IOException

getPolID

javax.ws.rs.core.Response getPolID(@HeaderParam(value="subjectid")
                                   String subjectId,
                                   @HeaderParam(value="id")
                                   String id,
                                   @HeaderParam(value="uri")
                                   String uri,
                                   @HeaderParam(value="polnames")
                                   String polnames)
Read a Pol resource. A client issues a GET /pols/ Content-Type: application/xml request to get the XML representation of the Pol resource with this ID.

Parameters:
id -
Returns:
response to be sent to the client

deletePol

javax.ws.rs.core.Response deletePol(@HeaderParam(value="subjectid")
                                    String subjectId,
                                    @HeaderParam(value="id")
                                    String id)
Delete a Book resource. A client issues a DELETE /pols/{id} Content-Type: application/xml request to delete the Pol resource with the id matching the URI pattern /pols/{id}.

Parameters:
id -


Copyright © 2010-2011 OpenTox project. All Rights Reserved.