Class OpenApiDescriptionDispatcher
java.lang.Object
org.apache.tapestry5.internal.services.OpenApiDescriptionDispatcher
- All Implemented Interfaces:
Dispatcher
Recognizes requests where the path matches the value of
SymbolConstants.OPENAPI_DESCRIPTION_PATH
(/openapi.json
by default). Only used if SymbolConstants.PUBLISH_OPENAPI_DEFINITON
is set to true
(which isn't by default).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOpenApiDescriptionDispatcher
(String path, OpenApiDescriptionGenerator openApiDescriptionGenerator, boolean productionMode) -
Method Summary
-
Constructor Details
-
OpenApiDescriptionDispatcher
public OpenApiDescriptionDispatcher(@Symbol("tapestry.openapi-description-path") String path, OpenApiDescriptionGenerator openApiDescriptionGenerator, @Symbol("tapestry.production-mode") boolean productionMode)
-
-
Method Details
-
dispatch
Description copied from interface:Dispatcher
Analyzes the incoming request and performs an appropriate operation for each.- Specified by:
dispatch
in interfaceDispatcher
- Returns:
- true if a response was delivered, false if the dispatcher did not handle the request (and a search for a handler should continue)
- Throws:
IOException
-