Class OpenApiDescriptionDispatcher
- java.lang.Object
-
- org.apache.tapestry5.internal.services.OpenApiDescriptionDispatcher
-
- All Implemented Interfaces:
Dispatcher
public class OpenApiDescriptionDispatcher extends java.lang.Object implements Dispatcher
Recognizes requests where the path matches the value ofSymbolConstants.OPENAPI_DESCRIPTION_PATH
(/openapi.json
by default). Only used ifSymbolConstants.PUBLISH_OPENAPI_DEFINITON
is set totrue
(which isn't by default).- See Also:
OpenApiDescriptionGenerator
-
-
Constructor Summary
Constructors Constructor Description OpenApiDescriptionDispatcher(java.lang.String path, OpenApiDescriptionGenerator openApiDescriptionGenerator, boolean productionMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
dispatch(Request request, Response response)
Analyzes the incoming request and performs an appropriate operation for each.
-
-
-
Constructor Detail
-
OpenApiDescriptionDispatcher
public OpenApiDescriptionDispatcher(@Symbol("tapestry.openapi-description-path") java.lang.String path, OpenApiDescriptionGenerator openApiDescriptionGenerator, @Symbol("tapestry.production-mode") boolean productionMode)
-
-
Method Detail
-
dispatch
public boolean dispatch(Request request, Response response) throws java.io.IOException
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:
java.io.IOException
-
-