@Path(value="/") @Singleton public class AdminService extends Object implements ContainerRequestFilter
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN |
private static String |
AUTHENTICATION_SCHEME |
private static String |
AUTHORIZATION_PROPERTY |
private AdminHelper |
helper |
private HttpServletRequest |
httpServletRequest |
static org.objectweb.util.monolog.api.Logger |
logger |
Constructor and Description |
---|
AdminService() |
Modifier and Type | Method and Description |
---|---|
Response |
createLocalConnectionFactory(HttpHeaders headers,
String jndiName,
UriInfo uriInfo) |
Response |
createQueue(HttpHeaders headers,
String destName,
String className,
int serverId,
boolean freeReading,
boolean freeWriting,
boolean bind,
String jndiName,
UriInfo uriInfo,
String json) |
Response |
createQueue(HttpHeaders headers,
String destName,
String className,
int serverId,
UriInfo uriInfo) |
Response |
createTcpConnectionFactory(HttpHeaders headers,
String jndiName,
String host,
int port,
String reliableClass,
UriInfo uriInfo) |
Response |
createTopic(HttpHeaders headers,
String destName,
String className,
int serverId,
boolean freeReading,
boolean freeWriting,
boolean bind,
String jndiName,
UriInfo uriInfo,
String json) |
Response |
createTopic(HttpHeaders headers,
String destName,
String className,
int serverId,
UriInfo uriInfo) |
Response |
createUser(HttpHeaders headers,
String userName,
@NotNull String password,
int serverId,
String identityClassName,
UriInfo uriInfo,
String json) |
Response |
createUser(HttpHeaders headers,
String userName,
@NotNull String password,
UriInfo uriInfo) |
Response |
deleteQueue(HttpHeaders headers,
String destName,
int serverId,
boolean unbind,
String jndiName,
UriInfo uriInfo) |
Response |
deleteTopic(HttpHeaders headers,
String destName,
int serverId,
boolean unbind,
String jndiName,
UriInfo uriInfo) |
Response |
deleteUser(HttpHeaders headers,
String userName,
@NotNull String password,
int serverId,
UriInfo uriInfo) |
void |
filter(ContainerRequestContext requestContext) |
String |
info(UriInfo uriInfo) |
String |
listQueue(HttpHeaders headers,
int serverId,
UriInfo uriInfo) |
String |
listTopic(HttpHeaders headers,
int serverId,
UriInfo uriInfo) |
static void |
logLinks(Response.ResponseBuilder builder) |
public static org.objectweb.util.monolog.api.Logger logger
private static final String AUTHORIZATION_PROPERTY
private static final String AUTHENTICATION_SCHEME
private final AdminHelper helper
public static final String ADMIN
@Context private HttpServletRequest httpServletRequest
public static void logLinks(Response.ResponseBuilder builder)
@GET @Path(value="/tcp/create") @Produces(value="text/plain") public Response createTcpConnectionFactory(@Context HttpHeaders headers, @QueryParam(value="jndi-name") String jndiName, @QueryParam(value="host") String host, @QueryParam(value="port") int port, @DefaultValue(value="org.objectweb.joram.client.jms.tcp.ReliableTcpClient") @QueryParam(value="reliable-class") String reliableClass, @Context UriInfo uriInfo)
@GET @Path(value="/local/create") @Produces(value="text/plain") public Response createLocalConnectionFactory(@Context HttpHeaders headers, @QueryParam(value="jndi-name") String jndiName, @Context UriInfo uriInfo)
@GET @Path(value="/queue") @Produces(value="text/plain") public String listQueue(@Context HttpHeaders headers, @QueryParam(value="server-id") int serverId, @Context UriInfo uriInfo) throws ConnectException, AdminException
ConnectException
AdminException
@GET @Path(value="/queue/{destName}") @Produces(value="text/plain") public Response createQueue(@Context HttpHeaders headers, @PathParam(value="destName") String destName, @DefaultValue(value="org.objectweb.joram.mom.dest.Queue") @QueryParam(value="class-name") String className, @QueryParam(value="server-id") int serverId, @Context UriInfo uriInfo)
@POST @Path(value="/queue/{destName}") @Produces(value="text/plain") @Consumes(value="application/json") public Response createQueue(@Context HttpHeaders headers, @PathParam(value="destName") String destName, @DefaultValue(value="org.objectweb.joram.mom.dest.Queue") @QueryParam(value="class-name") String className, @DefaultValue(value="-1") @QueryParam(value="server-id") int serverId, @DefaultValue(value="false") @QueryParam(value="free-reading") boolean freeReading, @DefaultValue(value="false") @QueryParam(value="free-writing") boolean freeWriting, @DefaultValue(value="true") @QueryParam(value="jndi-bind") boolean bind, @QueryParam(value="jndi-name") String jndiName, @Context UriInfo uriInfo, String json)
@GET @Path(value="/topic") @Produces(value="text/plain") public String listTopic(@Context HttpHeaders headers, @QueryParam(value="server-id") int serverId, @Context UriInfo uriInfo) throws ConnectException, AdminException
ConnectException
AdminException
@GET @Path(value="/topic/{destName}") @Produces(value="text/plain") public Response createTopic(@Context HttpHeaders headers, @PathParam(value="destName") String destName, @DefaultValue(value="org.objectweb.joram.mom.dest.Topic") @QueryParam(value="class-name") String className, @QueryParam(value="server-id") int serverId, @Context UriInfo uriInfo)
@POST @Path(value="/topic/{destName}") @Produces(value="text/plain") @Consumes(value="application/json") public Response createTopic(@Context HttpHeaders headers, @PathParam(value="destName") String destName, @DefaultValue(value="org.objectweb.joram.mom.dest.Topic") @QueryParam(value="class-name") String className, @QueryParam(value="server-id") int serverId, @DefaultValue(value="false") @QueryParam(value="free-reading") boolean freeReading, @DefaultValue(value="false") @QueryParam(value="free-writing") boolean freeWriting, @DefaultValue(value="true") @QueryParam(value="jndi-bind") boolean bind, @QueryParam(value="jndi-name") String jndiName, @Context UriInfo uriInfo, String json)
@GET @Path(value="/user/{userName}") @Produces(value="text/plain") public Response createUser(@Context HttpHeaders headers, @PathParam(value="userName") String userName, @NotNull @QueryParam(value="password") @NotNull String password, @Context UriInfo uriInfo)
@POST @Path(value="/user/{userName}") @Produces(value="text/plain") @Consumes(value="application/json") public Response createUser(@Context HttpHeaders headers, @PathParam(value="userName") String userName, @NotNull @QueryParam(value="password") @NotNull String password, @DefaultValue(value="-1") @QueryParam(value="server-id") int serverId, @DefaultValue(value="org.objectweb.joram.shared.security.SimpleIdentity") @QueryParam(value="identity-class-name") String identityClassName, @Context UriInfo uriInfo, String json)
@DELETE @Path(value="/user/{userName}") @Produces(value="text/plain") public Response deleteUser(@Context HttpHeaders headers, @PathParam(value="userName") String userName, @NotNull @QueryParam(value="password") @NotNull String password, @DefaultValue(value="-1") @QueryParam(value="server-id") int serverId, @Context UriInfo uriInfo)
@DELETE @Path(value="/queue/{destName}") @Produces(value="text/plain") public Response deleteQueue(@Context HttpHeaders headers, @PathParam(value="destName") String destName, @DefaultValue(value="-1") @QueryParam(value="server-id") int serverId, @DefaultValue(value="true") @QueryParam(value="jndi-unbind") boolean unbind, @QueryParam(value="jndi-name") String jndiName, @Context UriInfo uriInfo)
@DELETE @Path(value="/topic/{destName}") @Produces(value="text/plain") public Response deleteTopic(@Context HttpHeaders headers, @PathParam(value="destName") String destName, @DefaultValue(value="-1") @QueryParam(value="server-id") int serverId, @DefaultValue(value="true") @QueryParam(value="jndi-unbind") boolean unbind, @QueryParam(value="jndi-name") String jndiName, @Context UriInfo uriInfo)
public void filter(ContainerRequestContext requestContext) throws IOException
filter
in interface ContainerRequestFilter
IOException
Copyright © 2021 ScalAgent D.T.. All rights reserved.