Class SNSContext
java.lang.Object
org.deltava.jdbc.ConnectionContext
org.deltava.commands.HTTPContext
org.deltava.service.ServiceContext
org.deltava.service.aws.SNSContext
- All Implemented Interfaces:
SecurityContext
An execution context for SNS
- Since:
- 8.5
- Version:
- 8.5
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class ServiceContext
ServiceContext.OutputBufferNested classes/interfaces inherited from class ConnectionContext
ConnectionContext.ConnectionPoolException -
Field Summary
Fields inherited from class HTTPContext
_req, _rsp, ADDRINFO_ATTR_NAME, CAPTCHA_ATTR_NAME, CSP_ATTR_NAME, HTTPCTXT_ATTR_NAME, RTLIMIT_ATTR_NAME, SU_ATTR_NAME, USER_ATTR_NAME, USERAGENT_ATTR_NAMEModifier and TypeFieldDescriptionprotected final jakarta.servlet.http.HttpServletRequestThe HTTP request.protected final jakarta.servlet.http.HttpServletResponseThe HTTP response.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ServiceContext
commit, getBody, print, println, setContentType, setContentTypeModifier and TypeMethodDescriptionvoidcommit()Writes the output buffer to the HTTP servlet response, setting the Content-length header.getBody()Retrieves the POST body.voidPrints a string to the output buffer.voidPrints a string and a trailing newline to the output buffer.voidsetContentType(String contentType) Helper method to set the content type.voidsetContentType(String contentType, String encoding) Helper method to set the content type and output encoding.Methods inherited from class HTTPContext
addCookie, clearCookie, getCmdParameter, getCookie, getFile, getParameter, getParameters, getParameters, getRequest, getResponse, getRoles, getSession, getUser, isAuthenticated, isSuperUser, isUserInRole, passedCAPTCHA, setAttribute, setExpiry, setHeader, setHeader, setUserModifier and TypeMethodDescriptionvoidaddCookie(jakarta.servlet.http.Cookie c) Adds a Cookie to the response.voidclearCookie(String name) Clears a Cookie in the response.getCmdParameter(int prmType, Object defaultValue) Returns one of the special command parameters.jakarta.servlet.http.CookieReturns an HTTP cookie.Returns the value of an uploaded file object.getParameter(String pName) Returns the value of a request parameter.getParameters(String pName) Returns the values of a collection of request parameters.getParameters(String pName, Collection<String> deflt) Returns the values of a collection of request parameters.jakarta.servlet.http.HttpServletRequestReturns the current HTTP Servlet Request.jakarta.servlet.http.HttpServletResponseReturns the current HTTP Servlet Response.getRoles()Returns the list of roles for the user.jakarta.servlet.http.HttpSessionReturns the current HTTP session.getUser()Returns the authenticated user object.booleanReturns if this command is being invoked by an authenticated user.booleanReturns whether an Administrator is impersonating another user.booleanisUserInRole(String roleName) Returns if the currently logged in user is a member of a particular role.booleanReturns whether the user has passed CAPTCHA validation.voidsetAttribute(String name, Object value, Command.Scope scope) Sets an attribute in a particular context.voidsetExpiry(int expireInterval) Sets an Expires header on the response.voidHelper method to set a numeric response header.voidHelper method to set a response header.voidUpdates the User executing this operation.Methods inherited from class ConnectionContext
commitTX, getConnection, getDB, hasConnection, release, rollbackTX, setDB, startTXModifier and TypeMethodDescriptionvoidcommitTX()Commits the current JDBC transaction.Reserves a JDBC Connection from the connection pool.getDB()Returns the default database name.booleanReturns whether a JDBC connection has been reserved by this context.longrelease()Returns a JDBC Connection to the connection pool.voidRolls back the current JDBC transaction.voidUpdates the default database name.voidstartTX()Starts a JDBC transaction block, by turning off autoCommit on the reserved Connection.
-
Constructor Details
-
SNSContext
SNSContext(ServiceContext ctx, SNSPayload sns) Creates the SNS context.- Parameters:
ctx- the ServiceContextsns- the SNS payload
-
-
Method Details
-
getPayload
-