public final class DocService extends AbstractCompositeService<HttpService,HttpRequest,HttpResponse> implements HttpService
HttpService that provides information about the Services running in a
Server. It does not require any configuration besides adding it to a VirtualHost; it
discovers all the eligible Services automatically.
DocService looks up the DocServicePlugins available in the current JVM
using Java SPI (Service Provider Interface). The DocServicePlugin implementations will
generate ServiceSpecifications for the Services they support.
| Constructor and Description |
|---|
DocService()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static DocServiceBuilder |
builder()
Returns a new
DocServiceBuilder. |
void |
serviceAdded(ServiceConfig cfg)
Invoked when this service has been added to a
Server with the specified
configuration. |
findService, serve, serviceAt, servicesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecorate, decorate, serveas, decorate, shouldCachePathpublic static DocServiceBuilder builder()
DocServiceBuilder.public void serviceAdded(ServiceConfig cfg) throws Exception
ServiceServer with the specified
configuration. Please note that this method can be invoked more than once if this service
has been added more than once.serviceAdded in interface Service<HttpRequest,HttpResponse>serviceAdded in class AbstractCompositeService<HttpService,HttpRequest,HttpResponse>ExceptionCopyright © 2020 LeanCloud. All rights reserved.