|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opentox.pol.PolServiceImpl
public class PolServiceImpl
A Singleton class that uses an in-memory map to keep the pol objects. This way, we maintain the state of the resources in memory.
Method Summary | |
---|---|
javax.ws.rs.core.Response |
createPol(String subjectId,
javax.ws.rs.core.UriInfo uriInfo,
InputStream is)
Create a Pol resource to respond to an HTTP request POST /opensso-pol |
javax.ws.rs.core.Response |
deletePol(String subjectId,
String id)
Delete a Pol resource in response to an HTTP request DELETE /opensso-pol/{id} |
static PolServiceImpl |
getInstance()
|
javax.ws.rs.core.Response |
getPolID(String subjectId,
String id,
String uri,
String polnames)
Return a Pol resource in response to an HTTP request GET /opensso-pol/{id} |
void |
log(String msg)
|
protected boolean |
ValidateIPAddress(String ipAddress)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PolServiceImpl getInstance()
public void log(String msg)
public javax.ws.rs.core.Response createPol(@HeaderParam(value="subjectid") String subjectId, @Context javax.ws.rs.core.UriInfo uriInfo, InputStream is) throws javax.ws.rs.WebApplicationException
createPol
in interface PolService
uriInfo
- Pol
- subjectid
-
javax.ws.rs.WebApplicationException
public 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) throws javax.ws.rs.WebApplicationException
getPolID
in interface PolService
id
-
javax.ws.rs.WebApplicationException
public javax.ws.rs.core.Response deletePol(@HeaderParam(value="subjectid") String subjectId, @HeaderParam(value="id") String id) throws javax.ws.rs.WebApplicationException
deletePol
in interface PolService
id
-
javax.ws.rs.WebApplicationException
protected final boolean ValidateIPAddress(String ipAddress)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |