@Path(value="xml/users") public class XMLBasedUsers extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
XMLBasedUsers() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createRole(String email,
String ref) |
javax.ws.rs.core.Response |
createUser(String email,
String name) |
javax.ws.rs.core.Response |
defaultUsers() |
javax.ws.rs.core.Response |
updateUser(String email,
String name) |
javax.ws.rs.core.Response |
userProductRole(String id,
String refType) |
javax.ws.rs.core.Response |
userRole(String email) |
@GET @Produces(value="application/xml") public javax.ws.rs.core.Response defaultUsers()
@Path(value="{email}") @GET @Produces(value="application/xml") public javax.ws.rs.core.Response userRole(@PathParam(value="email") String email)
@Path(value="{id : (.+)?}/{refType : (.+)?}") @GET @Produces(value="application/xml") public javax.ws.rs.core.Response userProductRole(@PathParam(value="id") String id, @PathParam(value="refType") String refType)
@POST @Path(value="/add") @Produces(value="application/xml") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response createUser(@FormParam(value="Email") String email, @FormParam(value="Name") String name) throws IOException
IOException
@POST @Path(value="/update") @Produces(value="application/xml") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response updateUser(@FormParam(value="Email") String email, @FormParam(value="Name") String name) throws IOException
IOException
@POST @Path(value="/addrole") @Produces(value="application/xml") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response createRole(@FormParam(value="Email") String email, @FormParam(value="Reference") String ref) throws IOException
IOException
Copyright © 2019. All rights reserved.