Package com.linecorp.armeria.server.docs
Class DocService
- java.lang.Object
-
- com.linecorp.armeria.server.composition.AbstractCompositeService<HttpRequest,HttpResponse>
-
- com.linecorp.armeria.server.docs.DocService
-
- All Implemented Interfaces:
Service<HttpRequest,HttpResponse>
public class DocService extends AbstractCompositeService<HttpRequest,HttpResponse>
AnHttpService
that provides information about theService
s running in aServer
. It does not require any configuration besides adding it to aVirtualHost
; it discovers all the eligibleService
s automatically.How is the documentation generated?
DocService
looks up theDocServicePlugin
s available in the current JVM using Java SPI (Service Provider Interface). TheDocServicePlugin
implementations will generateServiceSpecification
s for theService
s they support.
-
-
Constructor Summary
Constructors Constructor Description DocService()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serviceAdded(ServiceConfig cfg)
-
Methods inherited from class com.linecorp.armeria.server.composition.AbstractCompositeService
findService, serve, serviceAt, services
-
-
-
-
Method Detail
-
serviceAdded
public void serviceAdded(ServiceConfig cfg) throws Exception
Description copied from interface:Service
Invoked when thisService
has been added to aServer
with the specified configuration. Please note that this method can be invoked more than once if thisService
has been added more than once.- Specified by:
serviceAdded
in interfaceService<HttpRequest,HttpResponse>
- Overrides:
serviceAdded
in classAbstractCompositeService<HttpRequest,HttpResponse>
- Throws:
Exception
-
-