Uses of Class
com.mastfrog.acteur.Acteur
Packages that use Acteur
Package
Description
Acteur
-
Uses of Acteur in com.mastfrog.acteur
Subclasses of Acteur in com.mastfrog.acteurModifier and TypeClassDescriptionfinal classConvenience Acteur which compares the current Page's Date against the current request's If-Modified-Since header and returns a 304 response if the browser's cached version is current.final classConvenience Acteur which compares the current Page's ETag against the current request's If-None-Match header and returns a 304 response if the browser's cached version is current.final classclassMethods in com.mastfrog.acteur that return ActeurModifier and TypeMethodDescriptionprotected <T> ActeurActeur.add(HeaderValueType<T> decorator, T value) protected final ActeurActeur.badRequest()protected final ActeurActeur.badRequest(Object msg) ActeurFactory.banParameters(String... names) Reject request which contain the passed parametersActeurFactory.branch(Class<? extends Acteur> ifTrue, Class<? extends Acteur> ifFalse, ActeurFactory.Test test) protected final ActeurActeur.continueAfter(boolean unwrapArrays, CompletionStage<?>... stages) Continue the Acteur chain, running any subsequent acteurs, once the passed CompletionStages (e.g.protected final <T> ActeurActeur.continueAfter(com.mastfrog.function.throwing.ThrowingConsumer<EnhCompletableFuture<T>> c) Continue the acteur chain once the completable future passed to the passed consumer is consumed.protected final ActeurActeur.continueAfter(CompletionStage<?>... stages) Continue the Acteur chain, running any subsequent acteurs, once the passed CompletionStages (e.g.ActeurFactory.exactPathLength(int length) abstract ActeurState.getActeur()Returns whether (and by which action) the next event has to be processed prior to regular processing.Acteur.Delegate.getDelegate()Get the acteur being delegated toActeurFactory.globPathMatch(boolean decode, String... patterns) ActeurFactory.globPathMatch(String... patterns) <T> ActeurActeurFactory.injectRequestBodyAsJSON(Class<T> type) Creates an Acteur which will read the request body, construct an object from it, and include it for injection into later Acteurs in the chain.<T> ActeurActeurFactory.injectRequestParametersAs(Class<T> type) Create an acteur which will take the request parameters, turn them into an implementation of some interface and include that in the set of objects later Acteurs in the chain can request for injection.ActeurFactory.matchMethods(boolean notSupp, Method... methods) Reject the request if it is not an allowed HTTP method, optionally including information in the response, or simply rejecting the request and allowing the next page a crack at it.ActeurFactory.matchMethods(Method... methods) Deprecated.Use @Methods instead - it is self-documentingDeprecated.Deprecated.Use @PathRegex instead - it is self-documentingActeurFactory.maximumBodyLength(int length) ActeurFactory.maximumPathLength(int length) ActeurFactory.minimumBodyLength(int length) ActeurFactory.minimumPathLength(int length) protected final Acteurprotected final ActeurActeur.noContent()protected final ActeurActeur.notFound()protected final Acteurprotected final ActeurActeur.ok()protected final ActeurActeurFactory.parametersMayNotBeCombined(String... names) ActeurFactory.parametersMustBeNumbersIfTheyArePresent(boolean allowDecimal, boolean allowNegative, String... names) ActeurFactory.preconditionFailedIfUnmodifiedSinceMatches()Check the "If-Unmodified-Since" headerActeurFactory.redirectEmptyPath(Path to) ActeurFactory.redirectEmptyPath(String to) protected final ActeurActeur.reject()protected final Acteurprotected final ActeurActeur.reply(io.netty.handler.codec.http.HttpResponseStatus status) protected final ActeurActeurFactory.requireAtLeastOneParameter(String... names) Reject the request if none of the passed parameter names are presentActeurFactory.requireParameters(String... names) Reject the request unless certain URL parameters are presentActeurFactory.requireParametersIfMethodMatches(Method method, String... params) ActeurFactory.respondWith(int status) ActeurFactory.respondWith(int status, String msg) ActeurFactory.respondWith(io.netty.handler.codec.http.HttpResponseStatus status) ActeurFactory.respondWith(io.netty.handler.codec.http.HttpResponseStatus status, String msg) ActeurFactory.responseCode(io.netty.handler.codec.http.HttpResponseStatus status) Create an Acteur which simply always responds with the given HTTP status.ActeurFactory.sendNotModifiedIfETagHeaderMatches()Checks the IF_NONE_MATCH header and compares it with the value from the current Page's getETag() method.ActeurFactory.sendNotModifiedIfIfModifiedSinceHeaderMatches()Check the "If-Modified-Since" header and compares it to the current Page's getLastModified (rounding milliseconds down).final ActeurActeur.setChunked(boolean chunked) final ActeurActeur.setMessage(Object message) final ActeurActeur.setResponseBodyWriter(io.netty.channel.ChannelFutureListener listener) Set a ChannelFutureListener which will be called after headers are written and flushed to the socket; prefersetResponseWriter()to this method unless you are not using chunked encoding and want to stream your response (in which case, be sure to chunked(false) or you will have encoding errors).protected final <T extends io.netty.channel.ChannelFutureListener>
ActeurActeur.setResponseBodyWriter(Class<T> type) Set a ChannelFutureListener which will be called after headers are written and flushed to the socket; prefersetResponseWriter()to this method unless you are not using chunked encoding and want to stream your response (in which case, be sure to setChunked(false) or you will have encoding errors).final ActeurActeur.setResponseCode(io.netty.handler.codec.http.HttpResponseStatus status) protected final <T extends ResponseWriter>
ActeurActeur.setResponseWriter(Class<T> writerType) Set a response writer which can iteratively be called back until the response is completed.protected final <T extends ResponseWriter>
ActeurActeur.setResponseWriter(T writer) Set a response writer which can iteratively be called back until the response is completed.protected final ActeurActeur.then(com.mastfrog.function.throwing.ThrowingConsumer<Deferral.Resumer> cons) Defer the acteur chain, allowing the passed ThrowingConsumer to run any amount of asynchonous logic, and callResumer.resume()with objects to be available for injection into subsequent Acteurs.protected final <T> ActeurActeur.then(CompletionStage<T> c) Pass a CompletionStage (for example, CompletableFuture) which will execute asynchronously.protected final <T> ActeurActeur.then(CompletionStage<T> c, io.netty.handler.codec.http.HttpResponseStatus successStatus) Pass a CompletionStage (for example, CompletableFuture) which will execute asynchronously.static ActeurMethods in com.mastfrog.acteur that return types with arguments of type ActeurModifier and TypeMethodDescriptionActeurFactory.preconditionFailedIfUnmodifiedSinceMatchesType()ActeurFactory.sendNotModifiedIfETagHeaderMatchesType()ActeurFactory.sendNotModifiedIfIfModifiedSinceHeaderMatchesType()Methods in com.mastfrog.acteur with parameters of type ActeurModifier and TypeMethodDescriptionfinal voidprotected io.netty.handler.codec.http.HttpResponseApplication.decorateResponse(Event<?> event, Page page, Acteur action, io.netty.handler.codec.http.HttpResponse response) Deprecated.Use onBeforeSendResponse insteadprotected voidApplication.onAfterRespond(com.mastfrog.acteur.util.RequestID id, Event<?> event, Acteur acteur, Page page, State state, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.handler.codec.http.HttpResponse resp) Override to do any post-response tasksprotected voidApplication.onBeforeSendResponse(io.netty.handler.codec.http.HttpResponseStatus status, Event<?> event, Response response, Acteur acteur, Page page) voidResponseDecorator.onBeforeSendResponse(Application application, io.netty.handler.codec.http.HttpResponseStatus status, Event<?> event, Response response, Acteur acteur, Page page) Method parameters in com.mastfrog.acteur with type arguments of type Acteur -
Uses of Acteur in com.mastfrog.acteur.annotations
Subclasses of Acteur in com.mastfrog.acteur.annotations -
Uses of Acteur in com.mastfrog.acteur.auth
Subclasses of Acteur in com.mastfrog.acteur.authModifier and TypeClassDescriptionclassDeprecated.Do not use directly - bind AuthenticationActeur instead, so that authentication strategies are pluggableclass -
Uses of Acteur in com.mastfrog.acteur.debug
Methods in com.mastfrog.acteur.debug with parameters of type ActeurModifier and TypeMethodDescriptionprotected voidHttpProbe.onActeurWasRun(com.mastfrog.acteur.util.RequestID id, HttpEvent evt, Page page, Acteur acteur, ActeurState result) default voidProbe.onActeurWasRun(com.mastfrog.acteur.util.RequestID id, Event<?> evt, Page page, Acteur acteur, ActeurState result) protected voidHttpProbe.onBeforeSendResponse(com.mastfrog.acteur.util.RequestID id, HttpEvent httpEvent, Acteur acteur, io.netty.handler.codec.http.HttpResponseStatus status, boolean hasListener, Object message) default voidProbe.onBeforeSendResponse(com.mastfrog.acteur.util.RequestID id, Event<?> event, Acteur acteur, io.netty.handler.codec.http.HttpResponseStatus status, boolean hasListener, Object message) -
Uses of Acteur in com.mastfrog.acteur.errors
Methods in com.mastfrog.acteur.errors with parameters of type Acteur -
Uses of Acteur in com.mastfrog.acteur.preconditions
Method parameters in com.mastfrog.acteur.preconditions with type arguments of type ActeurModifier and TypeMethodDescriptionabstract <T extends Page>
booleanPageAnnotationHandler.processAnnotations(T page, List<? super Acteur> addTo) <T extends Page>
booleanPageAnnotationHandler.Registry.processAnnotations(T page, List<? super Acteur> addTo) -
Uses of Acteur in com.mastfrog.acteur.websocket
Subclasses of Acteur in com.mastfrog.acteur.websocketModifier and TypeClassDescriptionclassUse in @Precursors annotation before acteurs which consume and produce web socket responses.Fields in com.mastfrog.acteur.websocket with type parameters of type Acteur