Class AbstractHttpService

java.lang.Object
com.linecorp.armeria.server.AbstractHttpService
All Implemented Interfaces:
Unwrappable, HttpService, Service<HttpRequest,HttpResponse>
Direct Known Subclasses:
AbstractGraphqlService, AbstractUnsafeUnaryGrpcService, FileService, ManagementService, PrometheusExpositionService

public abstract class AbstractHttpService extends Object implements HttpService
A skeletal HttpService for easier HTTP service implementation.

This class provides the methods that handles the HTTP requests of the methods their names signify. For example, doGet() method handles a GET request.

These methods reject requests with a 405 Method Not Allowed response by default. Override one of them to handle requests properly.