@Path(value="/") public class CommandResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_AGE |
static String |
SESSION_COOKIE_NAME |
protected org.glassfish.jersey.internal.util.collection.Ref<Subject> |
subjectRef |
| Constructor and Description |
|---|
CommandResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
execCommandEmptyInMultOut(String command,
String indent,
String modelETag,
javax.ws.rs.core.Cookie jSessionId) |
javax.ws.rs.core.Response |
execCommandEmptyInSimpOut(String command,
String indent,
String modelETag,
javax.ws.rs.core.Cookie jSessionId) |
javax.ws.rs.core.Response |
execCommandEmptyInSseOut(String command,
String modelETag,
javax.ws.rs.core.Cookie jSessionId) |
javax.ws.rs.core.Response |
execCommandMultInMultOut(String command,
String indent,
String modelETag,
javax.ws.rs.core.Cookie jSessionId,
ParamsWithPayload pwp) |
javax.ws.rs.core.Response |
execCommandMultInSimpOut(String command,
String indent,
String modelETag,
javax.ws.rs.core.Cookie jSessionId,
ParamsWithPayload pwp) |
javax.ws.rs.core.Response |
execCommandMultInSseOut(String command,
String modelETag,
javax.ws.rs.core.Cookie jSessionId,
ParamsWithPayload pwp) |
javax.ws.rs.core.Response |
execCommandSimpInMultOut(String command,
String indent,
String modelETag,
javax.ws.rs.core.Cookie jSessionId,
ParameterMap data) |
javax.ws.rs.core.Response |
execCommandSimpInSimpOut(String command,
String indent,
String modelETag,
javax.ws.rs.core.Cookie jSessionId,
ParameterMap data) |
javax.ws.rs.core.Response |
execCommandSimpInSseOut(String command,
String modelETag,
javax.ws.rs.core.Cookie jSessionId,
ParameterMap data) |
javax.ws.rs.core.Response |
getCommandModel(String command) |
javax.ws.rs.core.NewCookie |
getJSessionCookie(javax.ws.rs.core.Cookie jSessionId)
This will create a unique SessionId, Max-Age,Version,Path to be added to the Set-Cookie header
|
String |
getManPageHtml(String command) |
String |
getManPageTxt(String command,
String eol) |
javax.ws.rs.core.Response |
optionsCommandModel(String commandName) |
public static final String SESSION_COOKIE_NAME
public static final int MAX_AGE
@Inject protected org.glassfish.jersey.internal.util.collection.Ref<Subject> subjectRef
@GET
@Path(value="/{command:.*}/")
@Produces(value={"application/json","application/xml","application/x-javascript"})
public javax.ws.rs.core.Response getCommandModel(@PathParam(value="command")
String command)
throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException@OPTIONS
@Path(value="/{command:.*}/")
@Produces(value={"application/json","application/xml","application/x-javascript"})
public javax.ws.rs.core.Response optionsCommandModel(@PathParam(value="command")
String commandName)
throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException@GET
@Path(value="/{command:.*}/manpage")
@Produces(value="text/html")
public String getManPageHtml(@PathParam(value="command")
String command)
throws IOException,
javax.ws.rs.WebApplicationException
IOExceptionjavax.ws.rs.WebApplicationException@GET
@Path(value="/{command:.*}/manpage")
@Produces(value="text/plain")
public String getManPageTxt(@PathParam(value="command")
String command,
@QueryParam(value="eol")
String eol)
throws IOException,
javax.ws.rs.WebApplicationException
IOExceptionjavax.ws.rs.WebApplicationException@POST
@Path(value="/{command:.*}/")
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value={"application/json","application/x-javascript"})
public javax.ws.rs.core.Response execCommandSimpInSimpOut(@PathParam(value="command")
String command,
@HeaderParam(value="X-Indent")
String indent,
@HeaderParam(value="X-If-Command-Model-Match")
String modelETag,
@CookieParam(value="JSESSIONID")
javax.ws.rs.core.Cookie jSessionId,
ParameterMap data)
@POST
@Path(value="/{command:.*}/")
@Consumes(value="multipart/form-data")
@Produces(value={"application/json","application/x-javascript"})
public javax.ws.rs.core.Response execCommandMultInSimpOut(@PathParam(value="command")
String command,
@HeaderParam(value="X-Indent")
String indent,
@HeaderParam(value="X-If-Command-Model-Match")
String modelETag,
@CookieParam(value="JSESSIONID")
javax.ws.rs.core.Cookie jSessionId,
ParamsWithPayload pwp)
@POST
@Path(value="/{command:.*}/")
@Produces(value={"application/json","application/x-javascript"})
public javax.ws.rs.core.Response execCommandEmptyInSimpOut(@PathParam(value="command")
String command,
@HeaderParam(value="X-Indent")
String indent,
@HeaderParam(value="X-If-Command-Model-Match")
String modelETag,
@CookieParam(value="JSESSIONID")
javax.ws.rs.core.Cookie jSessionId)
@POST
@Path(value="/{command:.*}/")
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="multipart/mixed")
public javax.ws.rs.core.Response execCommandSimpInMultOut(@PathParam(value="command")
String command,
@HeaderParam(value="X-Indent")
String indent,
@HeaderParam(value="X-If-Command-Model-Match")
String modelETag,
@CookieParam(value="JSESSIONID")
javax.ws.rs.core.Cookie jSessionId,
ParameterMap data)
@POST
@Path(value="/{command:.*}/")
@Consumes(value="multipart/form-data")
@Produces(value="multipart/mixed")
public javax.ws.rs.core.Response execCommandMultInMultOut(@PathParam(value="command")
String command,
@HeaderParam(value="X-Indent")
String indent,
@HeaderParam(value="X-If-Command-Model-Match")
String modelETag,
@CookieParam(value="JSESSIONID")
javax.ws.rs.core.Cookie jSessionId,
ParamsWithPayload pwp)
@POST
@Path(value="/{command:.*}/")
@Produces(value="multipart/mixed")
public javax.ws.rs.core.Response execCommandEmptyInMultOut(@PathParam(value="command")
String command,
@HeaderParam(value="X-Indent")
String indent,
@HeaderParam(value="X-If-Command-Model-Match")
String modelETag,
@CookieParam(value="JSESSIONID")
javax.ws.rs.core.Cookie jSessionId)
@POST
@Path(value="/{command:.*}/")
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="text/event-stream")
public javax.ws.rs.core.Response execCommandSimpInSseOut(@PathParam(value="command")
String command,
@HeaderParam(value="X-If-Command-Model-Match")
String modelETag,
@CookieParam(value="JSESSIONID")
javax.ws.rs.core.Cookie jSessionId,
ParameterMap data)
@POST
@Path(value="/{command:.*}/")
@Consumes(value="multipart/form-data")
@Produces(value="text/event-stream")
public javax.ws.rs.core.Response execCommandMultInSseOut(@PathParam(value="command")
String command,
@HeaderParam(value="X-If-Command-Model-Match")
String modelETag,
@CookieParam(value="JSESSIONID")
javax.ws.rs.core.Cookie jSessionId,
ParamsWithPayload pwp)
@POST
@Path(value="/{command:.*}/")
@Produces(value="text/event-stream")
public javax.ws.rs.core.Response execCommandEmptyInSseOut(@PathParam(value="command")
String command,
@HeaderParam(value="X-If-Command-Model-Match")
String modelETag,
@CookieParam(value="JSESSIONID")
javax.ws.rs.core.Cookie jSessionId)
public javax.ws.rs.core.NewCookie getJSessionCookie(javax.ws.rs.core.Cookie jSessionId)
Copyright © 2019. All rights reserved.