Package com.linecorp.armeria.server.docs
Class DocService
java.lang.Object
- All Implemented Interfaces:
Unwrappable
,HttpService
,Service<HttpRequest,
HttpResponse>
An
HttpService
that provides information about the Service
s running in a
Server
. It does not require any configuration besides adding it to a VirtualHost
; it
discovers all the eligible Service
s automatically.
How is the documentation generated?
DocService
looks up the DocServicePlugin
s available in the current JVM
using Java SPI (Service Provider Interface). The DocServicePlugin
implementations will
generate ServiceSpecification
s for the Service
s they support.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocServiceBuilder
builder()
Returns a newDocServiceBuilder
.serve
(ServiceRequestContext ctx, HttpRequest req) Serves an incomingRequest
.void
Invoked when this service has been added to aServer
with the specified configuration.Methods inherited from class com.linecorp.armeria.server.SimpleDecoratingHttpService
exchangeType, options
Methods inherited from class com.linecorp.armeria.server.DecoratingService
shouldCachePath
Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrap, unwrapAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.server.HttpService
decorate, decorate
Methods inherited from interface com.linecorp.armeria.server.Service
as, shouldCachePath, unwrap
Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable
equalsIgnoreWrapper, unwrapAll
-
Constructor Details
-
DocService
public DocService()Creates a new instance.
-
-
Method Details
-
builder
Returns a newDocServiceBuilder
. -
serviceAdded
Description copied from interface:Service
Invoked when this service has been added to aServer
with the specified configuration. Please note that this method can be invoked more than once if this service has been added more than once.- Specified by:
serviceAdded
in interfaceService<HttpRequest,
HttpResponse> - Overrides:
serviceAdded
in classDecoratingService<HttpRequest,
HttpResponse, HttpRequest, HttpResponse> - Throws:
Exception
-
serve
Description copied from interface:Service
Serves an incomingRequest
.
-