public class AuthService extends SimpleDecoratingHttpService
HttpService to provide HTTP authorization functionality.AuthServiceBuilder| Modifier and Type | Method and Description |
|---|---|
static AuthServiceBuilder |
builder()
Returns a new
AuthServiceBuilder. |
static Function<? super HttpService,AuthService> |
newDecorator(Authorizer<HttpRequest>... authorizers)
Creates a new HTTP authorization
HttpService decorator using the specified
Authorizers. |
static Function<? super HttpService,AuthService> |
newDecorator(Iterable<? extends Authorizer<HttpRequest>> authorizers)
Creates a new HTTP authorization
HttpService decorator using the specified
Authorizers. |
HttpResponse |
serve(ServiceRequestContext ctx,
HttpRequest req)
Serves an incoming
Request. |
serviceAdded, shouldCachePathas, delegate, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecorate, decorateas, decorate, serviceAdded, shouldCachePathpublic static Function<? super HttpService,AuthService> newDecorator(Iterable<? extends Authorizer<HttpRequest>> authorizers)
HttpService decorator using the specified
Authorizers.authorizers - a list of Authorizers.@SafeVarargs public static Function<? super HttpService,AuthService> newDecorator(Authorizer<HttpRequest>... authorizers)
HttpService decorator using the specified
Authorizers.authorizers - the array of Authorizers.public static AuthServiceBuilder builder()
AuthServiceBuilder.public HttpResponse serve(ServiceRequestContext ctx, HttpRequest req) throws Exception
ServiceRequest.Copyright © 2020 LeanCloud. All rights reserved.