Class ServerUrlFilter
java.lang.Object
io.swagger.v3.core.filter.AbstractSpecFilter
org.sdase.commons.server.openapi.filter.ServerUrlFilter
- All Implemented Interfaces:
io.swagger.v3.core.filter.OpenAPISpecFilter,jakarta.ws.rs.core.Feature
@Singleton
public class ServerUrlFilter
extends io.swagger.v3.core.filter.AbstractSpecFilter
implements jakarta.ws.rs.core.Feature
An
OpenAPISpecFilter that adds the base URL to OpenAPI.servers(List).-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.swagger.v3.core.filter.AbstractSpecFilter
filterOperation, filterParameter, filterPathItem, filterRequestBody, filterResponse, filterSchema, filterSchemaProperty, isRemovingUnreferencedDefinitionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.swagger.v3.core.filter.OpenAPISpecFilter
isOpenAPI31Filter
-
Constructor Details
-
ServerUrlFilter
public ServerUrlFilter()
-
-
Method Details
-
filterOpenAPI
public Optional<io.swagger.v3.oas.models.OpenAPI> filterOpenAPI(io.swagger.v3.oas.models.OpenAPI openAPI, Map<String, List<String>> params, Map<String, String> cookies, Map<String, List<String>> headers) - Specified by:
filterOpenAPIin interfaceio.swagger.v3.core.filter.OpenAPISpecFilter- Overrides:
filterOpenAPIin classio.swagger.v3.core.filter.AbstractSpecFilter
-
configure
public boolean configure(jakarta.ws.rs.core.FeatureContext context) - Specified by:
configurein interfacejakarta.ws.rs.core.Feature
-