public final class HttpAuthService extends SimpleDecoratingHttpService
HttpService to provide HTTP authorization functionality.HttpAuthServiceBuilder| Modifier and Type | Method and Description |
|---|---|
static Function<? super HttpService,HttpAuthService> |
newDecorator(Authorizer<HttpRequest>... authorizers)
Creates a new HTTP authorization
HttpService decorator using the specified
Authorizers. |
static Function<? super HttpService,HttpAuthService> |
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,HttpAuthService> newDecorator(Iterable<? extends Authorizer<HttpRequest>> authorizers)
HttpService decorator using the specified
Authorizers.authorizers - a list of Authorizers.@SafeVarargs public static Function<? super HttpService,HttpAuthService> newDecorator(Authorizer<HttpRequest>... authorizers)
HttpService decorator using the specified
Authorizers.authorizers - the array of Authorizers.public HttpResponse serve(ServiceRequestContext ctx, HttpRequest req) throws Exception
ServiceRequest.Copyright © 2020 LeanCloud. All rights reserved.