@Singleton public class AdminService extends Object
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 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 Logger logger
private static final String AUTHORIZATION_PROPERTY
private static final String AUTHENTICATION_SCHEME
private final AdminHelper helper
public static final String ADMIN
private HttpServletRequest httpServletRequest
public static void logLinks(Response.ResponseBuilder builder)
public String info(UriInfo uriInfo)
public Response createTcpConnectionFactory(HttpHeaders headers, String jndiName, String host, int port, String reliableClass, UriInfo uriInfo)
public Response createLocalConnectionFactory(HttpHeaders headers, String jndiName, UriInfo uriInfo)
public String listQueue(HttpHeaders headers, int serverId, UriInfo uriInfo) throws ConnectException, AdminException
ConnectException
AdminException
public Response createQueue(HttpHeaders headers, String destName, String className, int serverId, UriInfo uriInfo)
public Response createQueue(HttpHeaders headers, String destName, String className, int serverId, boolean freeReading, boolean freeWriting, boolean bind, String jndiName, UriInfo uriInfo, String json)
public String listTopic(HttpHeaders headers, int serverId, UriInfo uriInfo) throws ConnectException, AdminException
ConnectException
AdminException
public Response createTopic(HttpHeaders headers, String destName, String className, int serverId, UriInfo uriInfo)
public Response createTopic(HttpHeaders headers, String destName, String className, int serverId, boolean freeReading, boolean freeWriting, boolean bind, String jndiName, UriInfo uriInfo, String json)
public Response createUser(HttpHeaders headers, String userName, @NotNull @NotNull String password, UriInfo uriInfo)
public Response createUser(HttpHeaders headers, String userName, @NotNull @NotNull String password, int serverId, String identityClassName, UriInfo uriInfo, String json)
public Response deleteUser(HttpHeaders headers, String userName, @NotNull @NotNull String password, int serverId, UriInfo uriInfo)
public Response deleteQueue(HttpHeaders headers, String destName, int serverId, boolean unbind, String jndiName, UriInfo uriInfo)
public Response deleteTopic(HttpHeaders headers, String destName, int serverId, boolean unbind, String jndiName, UriInfo uriInfo)
public void filter(ContainerRequestContext requestContext) throws IOException
IOException
Copyright © 2023 ScalAgent D.T.. All rights reserved.