Package | Description |
---|---|
act | |
act.app | |
act.cli | |
act.controller | |
act.controller.builtin | |
act.data | |
act.handler | |
act.handler.builtin | |
act.handler.builtin.controller | |
act.handler.builtin.controller.impl | |
act.i18n | |
act.inject |
The package is all about Dependency Injections
|
act.route | |
act.security | |
act.util | |
act.view | |
act.view.rythm | |
act.ws | |
act.xio | |
act.xio.undertow |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
Info.pid(ActionContext context) |
static java.lang.Object |
Info.show(ActionContext context,
App app) |
Modifier and Type | Method and Description |
---|---|
ActionContext |
ActionContext.__appRenderArgNames(java.lang.String names)
Called by bytecode enhancer to set the name list of the render arguments that is update by the enhancer
|
ActionContext |
ActionContext.__controllerInstance(java.lang.String className,
java.lang.Object instance) |
ActionContext |
ActionContext.accept(org.osgl.http.H.Format fmt) |
ActionContext |
ActionContext.actionPath(java.lang.String path) |
ActionContext |
ActionContext.addUpload(java.lang.String name,
org.osgl.storage.ISObject sobj) |
ActionContext |
ActionContext.applyContentType() |
ActionContext |
ActionContext.applyContentType(org.osgl.mvc.result.Result result)
Apply content type to response with result provided.
|
ActionContext |
ActionContext.applyCorsSpec() |
ActionContext |
ActionContext.byPassImplicitVariable() |
ActionContext |
ActionContext.ActionContextEvent.context() |
static ActionContext |
ActionContext.create(App app,
org.osgl.http.H.Request request,
ActResponse<?> resp)
Create an new
AppContext and return the new instance |
static ActionContext |
ActionContext.current() |
ActionContext |
ActionContext.enableCache() |
ActionContext |
ActionContext.flashViolationMessage() |
ActionContext |
ActionContext.flashViolationMessage(java.lang.String separator) |
ActionContext |
ActionContext.forceCsrfCheckingFailureHandler(MissingAuthenticationHandler handler) |
ActionContext |
ActionContext.forceMissingAuthenticationHandler(MissingAuthenticationHandler handler) |
ActionContext |
ActionContext.forceResponseStatus(org.osgl.http.H.Status status) |
ActionContext |
ActionContext.handler(RequestHandler handler) |
ActionContext |
ActionContext.param(java.lang.String name,
java.lang.String value) |
ActionContext |
ActionContext.renderArg(java.lang.String name,
java.lang.Object val) |
ActionContext |
ActionContext.router(Router router) |
ActionContext |
ActionContext.setHasTemplate(boolean b) |
ActionContext |
ActionContext.templateChangeListener(org.osgl.Osgl.Visitor<org.osgl.http.H.Format> listener) |
ActionContext |
ActionContext.templateLiteral(java.lang.String literal) |
ActionContext |
ActionContext.templatePath(java.lang.String templatePath) |
ActionContext |
ActionContext.urlContext(java.lang.String context) |
ActionContext |
ActionContext.urlPathParam(java.lang.String name,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
org.osgl.mvc.result.Result |
AppInterceptorManager.handleAfter(org.osgl.mvc.result.Result result,
ActionContext actionContext) |
org.osgl.mvc.result.Result |
AppInterceptorManager.handleBefore(ActionContext actionContext) |
org.osgl.mvc.result.Result |
AppInterceptorManager.handleException(java.lang.Exception ex,
ActionContext actionContext) |
void |
AppInterceptorManager.handleFinally(ActionContext actionContext) |
Constructor and Description |
---|
ActionContextEvent(ActionContext source) |
PreFireSessionResolvedEvent(org.osgl.http.H.Session session,
ActionContext context) |
SessionDissolvedEvent(ActionContext source) |
SessionResolvedEvent(org.osgl.http.H.Session session,
ActionContext context) |
SessionWillDissolveEvent(ActionContext source) |
Constructor and Description |
---|
CliOverHttpConsole(ActionContext actionContext,
java.io.OutputStream os) |
CliOverHttpContext(ActionContext actionContext,
java.io.OutputStream os) |
CliOverHttpSession(ActionContext context) |
CliSession(ActionContext context)
Construct a CliOverHttp session
|
Modifier and Type | Field and Description |
---|---|
protected ActionContext |
Controller.Base.context |
Modifier and Type | Field and Description |
---|---|
org.osgl.Osgl.Function<ActionContext,java.lang.String> |
CacheSupportMetaInfo.keyGenerator |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
CacheSupportMetaInfo.cacheKey(ActionContext context) |
void |
ActionMethodParamAnnotationHandler.handle(java.lang.String paramName,
java.lang.Object paramVal,
java.lang.annotation.Annotation annotation,
ActionContext context) |
static org.osgl.mvc.result.Result |
Controller.Util.inferPrimitiveResult(java.lang.Object v,
ActionContext actionContext,
boolean requireJSON,
boolean requireXML,
boolean isArray) |
static org.osgl.mvc.result.Result |
Controller.Util.inferResult(java.io.File file,
ActionContext actionContext)
Infer
Result from an File . |
static org.osgl.mvc.result.Result |
Controller.Util.inferResult(HandlerMethodMetaInfo meta,
java.lang.Object v,
ActionContext context,
boolean hasTemplate)
Infer a
Result from a object value v: If v is null then null returned If v is instance of Result then it is returned directly to infer the Result If v is instance of InputStream then Controller.Util.inferResult(InputStream, ActionContext) is used to infer the Result If v is instance of File then Controller.Util.inferResult(File, ActionContext) is used to infer the Result If v is instance of Map then Controller.Util.inferResult(Map, ActionContext) is used to infer the Result If v is an array of Object then Controller.Util.inferResult(Object[], ActionContext) is used to infer the Result |
static org.osgl.mvc.result.Result |
Controller.Util.inferResult(java.io.InputStream is,
ActionContext actionContext)
Infer
Result from an InputStream . |
static org.osgl.mvc.result.Result |
Controller.Util.inferResult(org.osgl.storage.ISObject sobj,
ActionContext context) |
static org.osgl.mvc.result.Result |
Controller.Util.inferResult(java.util.Map<java.lang.String,java.lang.Object> map,
ActionContext actionContext) |
static org.osgl.mvc.result.Result |
Controller.Util.inferResult(java.lang.Object[] array,
ActionContext actionContext) |
static org.osgl.mvc.result.Result |
Controller.Util.inferResult(org.osgl.mvc.result.Result r,
ActionContext actionContext) |
Modifier and Type | Method and Description |
---|---|
static CacheSupportMetaInfo |
CacheSupportMetaInfo.enabled(org.osgl.Osgl.Function<ActionContext,java.lang.String> keyGenerator,
int ttl,
boolean supportPost) |
Modifier and Type | Method and Description |
---|---|
org.osgl.mvc.result.Result |
CliOverHttp.run(java.lang.String cmd,
ActionContext context) |
Modifier and Type | Method and Description |
---|---|
abstract java.util.Map<java.lang.String,java.lang.String[]> |
RequestBodyParser.parse(ActionContext context) |
java.util.Map<java.lang.String,java.lang.String[]> |
UrlEncodedParser.parse(ActionContext context) |
java.util.Map<java.lang.String,java.lang.String[]> |
ApacheMultipartParser.parse(ActionContext context) |
java.util.Map<java.lang.String,java.lang.String[]> |
TextParser.parse(ActionContext context) |
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
RequestHandlerBase.apply(ActionContext context) |
boolean |
RequestHandler.express(ActionContext context)
Indicate the handler logic is fast enough to be put into network layer’s io thread and does not require to dispatch to worker thread.
|
boolean |
DelegateRequestHandler.express(ActionContext context) |
boolean |
RequestHandlerBase.express(ActionContext context) |
void |
RequestHandler.handle(ActionContext context)
Invoke handler upon an action context
|
void |
DelegateRequestHandler.handle(ActionContext context) |
void |
SimpleRequestHandler.handle(ActionContext context)
Invoke handler upon an action context
|
void |
OptionsRequestHandler.handle(ActionContext context) |
RequestHandler |
OptionsInfoBase.optionHandler(java.lang.CharSequence path,
ActionContext context) |
void |
RequestHandler.prepareAuthentication(ActionContext context)
Setting up handler for authentication.
|
void |
DelegateRequestHandler.prepareAuthentication(ActionContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
ResourceGetter.express(ActionContext context) |
boolean |
FileGetter.express(ActionContext context) |
boolean |
UnknownHttpMethodHandler.express(ActionContext context) |
void |
Echo.handle(ActionContext context) |
void |
Redirect.handle(ActionContext context) |
void |
ResourceGetter.handle(ActionContext context) |
void |
AlwaysNotImplemented.handle(ActionContext context) |
void |
AlwaysForbidden.handle(ActionContext context) |
void |
AlwaysBadRequest.handle(ActionContext context) |
void |
RedirectDir.handle(ActionContext context) |
void |
AlwaysNotModified.handle(ActionContext context) |
void |
AlwaysMethodNotAllowed.handle(ActionContext context) |
void |
AlwaysNotFound.handle(ActionContext context) |
void |
FileGetter.handle(ActionContext context) |
void |
UnknownHttpMethodHandler.handle(ActionContext context) |
protected void |
ResourceGetter.handle(java.lang.String path,
ActionContext context) |
void |
AuthenticatedRedirect.prepareAuthentication(ActionContext context) |
void |
AuthenticatedFileGetter.prepareAuthentication(ActionContext context) |
void |
AuthenticatedEcho.prepareAuthentication(ActionContext context) |
void |
AuthenticatedRedirectDir.prepareAuthentication(ActionContext context) |
void |
AuthenticatedResourceGetter.prepareAuthentication(ActionContext context) |
Modifier and Type | Method and Description |
---|---|
org.osgl.mvc.result.Result |
RequestHandlerProxy.GroupInterceptorWithResult.apply(ActionContext actionContext) |
java.lang.Void |
RequestHandlerProxy.GroupFinallyInterceptor.apply(ActionContext actionContext) |
org.osgl.mvc.result.Result |
RequestHandlerProxy.GroupExceptionInterceptor.apply(java.lang.Exception e,
ActionContext actionContext) |
org.osgl.mvc.result.Result |
RequestHandlerProxy.GroupAfterInterceptor.apply(org.osgl.mvc.result.Result result,
ActionContext actionContext) |
boolean |
RequestHandlerProxy.express(ActionContext context) |
void |
RequestHandlerProxy.handle(ActionContext context) |
abstract org.osgl.mvc.result.Result |
ActionHandler.handle(ActionContext actionContext) |
org.osgl.mvc.result.Result |
ActionHandlerInvoker.handle(ActionContext actionContext) |
org.osgl.mvc.result.Result |
ControllerAction.handle(ActionContext actionContext) |
abstract void |
FinallyInterceptor.handle(ActionContext actionContext) |
org.osgl.mvc.result.Result |
ExceptionInterceptorInvoker.handle(java.lang.Exception e,
ActionContext actionContext) |
org.osgl.mvc.result.Result |
ExceptionInterceptor.handle(java.lang.Exception e,
ActionContext actionContext) |
org.osgl.mvc.result.Result |
AfterInterceptorInvoker.handle(org.osgl.mvc.result.Result result,
ActionContext actionContext) |
org.osgl.mvc.result.Result |
AfterInterceptor.handle(org.osgl.mvc.result.Result result,
ActionContext actionContext)
Sub class should implement this method to do further processing on the result and return the processed result, or return a completely new result
|
protected abstract org.osgl.mvc.result.Result |
ExceptionInterceptor.internalHandle(java.lang.Exception e,
ActionContext actionContext) |
void |
RequestHandlerProxy.prepareAuthentication(ActionContext context) |
void |
FastRequestHandler.prepareAuthentication(ActionContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
ReflectedHandlerInvoker.checkTemplate(ActionContext context) |
org.osgl.mvc.result.Result |
ReflectedHandlerInvoker.handle(ActionContext context) |
org.osgl.mvc.result.Result |
ReflectedHandlerInvoker.handle(java.lang.Exception e,
ActionContext actionContext) |
org.osgl.mvc.result.Result |
ReflectedHandlerInvoker.handle(org.osgl.mvc.result.Result result,
ActionContext actionContext) |
Constructor and Description |
---|
LocaleResolver(ActionContext context) |
Modifier and Type | Field and Description |
---|---|
static javax.inject.Provider<ActionContext> |
ActProviders.ACTION_CONTEXT |
Modifier and Type | Method and Description |
---|---|
RequestHandler |
Router.getInvoker(org.osgl.http.H.Method method,
java.lang.CharSequence path,
ActionContext context) |
static RouteInfo |
RouteInfo.of(ActionContext context) |
java.lang.String |
Router.urlBase(ActionContext context) |
Modifier and Type | Method and Description |
---|---|
void |
CORS.Spec.applyTo(ActionContext context) |
void |
CSRF.Spec.check(ActionContext context,
org.osgl.http.H.Session session)
Check CSRF token after session resolved
|
static java.lang.String |
CSRF.formField(ActionContext ctx) |
void |
CSRFProtector.outputToken(java.lang.String token,
java.lang.String cookieName,
java.lang.String cookieDomain,
ActionContext context) |
void |
CSRF.Spec.preCheck(ActionContext context)
Do sanity check to see if CSRF token is present.
|
void |
CSRF.Spec.setCookieAndRenderArgs(ActionContext context) |
static java.lang.String |
CSRF.token(ActionContext ctx) |
void |
CORS.Spec.visit(ActionContext context) |
Modifier and Type | Field and Description |
---|---|
static AsmType<ActionContext> |
AsmTypes.ACTION_CONTEXT |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
SessionMapper.deserializeFlash(ActionContext context) |
java.lang.String |
SessionMapper.DefaultSessionMapper.deserializeFlash(ActionContext context) |
java.lang.String |
SessionMapper.HeaderSessionMapper.deserializeFlash(ActionContext context) |
java.lang.String |
SessionMapper.deserializeSession(ActionContext context) |
java.lang.String |
SessionMapper.DefaultSessionMapper.deserializeSession(ActionContext context) |
java.lang.String |
SessionMapper.HeaderSessionMapper.deserializeSession(ActionContext context) |
void |
RedirectToLoginUrl.handle(ActionContext context) |
void |
MissingAuthenticationHandler.handle(ActionContext context)
Throw out a
Result when authentication is missing. |
void |
ReturnUnauthorized.handle(ActionContext context) |
static void |
RedirectToLoginUrl.redirectToOriginalUrl(ActionContext context) |
static void |
RedirectToLoginUrl.redirectToOriginalUrl(ActionContext context,
java.lang.String defLandingUrl) |
org.osgl.mvc.result.Result |
RedirectToLoginUrl.result(ActionContext context) |
org.osgl.mvc.result.Result |
MissingAuthenticationHandler.result(ActionContext context)
Deprecated.
|
org.osgl.mvc.result.Result |
ReturnUnauthorized.result(ActionContext context) |
void |
SessionMapper.serializeFlash(org.osgl.http.H.Cookie flashCookie,
ActionContext context) |
void |
SessionMapper.DefaultSessionMapper.serializeFlash(org.osgl.http.H.Cookie flashCookie,
ActionContext context) |
void |
SessionMapper.HeaderSessionMapper.serializeFlash(org.osgl.http.H.Cookie flashCookie,
ActionContext context) |
void |
SessionMapper.serializeSession(org.osgl.http.H.Cookie sessionCookie,
ActionContext context) |
void |
SessionMapper.DefaultSessionMapper.serializeSession(org.osgl.http.H.Cookie sessionCookie,
ActionContext context) |
void |
SessionMapper.HeaderSessionMapper.serializeSession(org.osgl.http.H.Cookie sessionCookie,
ActionContext context) |
Modifier and Type | Method and Description |
---|---|
void |
RenderJwt.apply(ActionContext context) |
void |
RenderJsonMap.apply(ActionContext context) |
void |
RenderAny.apply(ActionContext context) |
void |
RenderTemplate.apply(ActionContext context) |
protected void |
TemplateBase.beforeRender(ActionContext context)
Sub class can implement this method to inject logic that needs to be done before rendering happening
|
abstract java.lang.Object |
ActionViewVarDef.eval(ActionContext context) |
static FilteredRenderJSON |
FilteredRenderJSON.get(org.osgl.http.H.Status status,
java.lang.Object v,
PropertySpec.MetaInfo spec,
ActionContext context) |
static FilteredRenderJSON |
FilteredRenderJSON.get(java.lang.Object v,
PropertySpec.MetaInfo spec,
ActionContext context) |
void |
Template.merge(ActionContext context) |
void |
TemplateBase.merge(ActionContext context) |
java.lang.String |
Template.render(ActionContext context) |
java.lang.String |
TemplateBase.render(ActionContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
RythmTemplate.beforeRender(ActionContext context) |
Modifier and Type | Method and Description |
---|---|
ActionContext |
WebSocketContext.actionContext() |
Modifier and Type | Method and Description |
---|---|
void |
SecureTicketHandler.handle(ActionContext context) |
void |
SecureTicketHandler.prepareAuthentication(ActionContext context) |
void |
WebSocketConnectionManager.registerNewConnection(WebSocketConnection connection,
ActionContext context) |
Constructor and Description |
---|
WebSocketContext(java.lang.String url,
WebSocketConnection connection,
WebSocketConnectionManager manager,
ActionContext actionContext,
App app) |
Modifier and Type | Method and Description |
---|---|
void |
NetworkHandler.handle(ActionContext ctx,
NetworkDispatcher dispatcher) |
void |
WebSocketConnectionHandler.prepareAuthentication(ActionContext context) |
Modifier and Type | Field and Description |
---|---|
static io.undertow.util.AttachmentKey<ActionContext> |
ActBlockingExchange.KEY_APP_CTX |
Constructor and Description |
---|
ActBlockingExchange(io.undertow.server.HttpServerExchange exchange,
ActionContext context) |
Copyright © 2014–2017 ActFramework. All rights reserved.