java.lang.Object
io.helidon.cors.CorsSupportBase<ServerRequest,ServerResponse,CorsSupport,CorsSupport.Builder>
io.helidon.webserver.cors.CorsSupport
- All Implemented Interfaces:
Handler,HttpService,ServerLifecycle
public class CorsSupport
extends CorsSupportBase<ServerRequest,ServerResponse,CorsSupport,CorsSupport.Builder>
implements HttpService, Handler
SE implementation of
CorsSupportBase.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CorsSupport.Builderbuilder()A new fluent API builder to customize setup of CorsSupport.static CorsSupportcreate()Create CORS support with defaults.static CorsSupportcreate(io.helidon.common.config.Config config) Creates a newCorsSupportinstance based on the provided configuration expected to match the basicCrossOriginConfigformat.static CorsSupportcreateMapped(io.helidon.common.config.Config config) Creates a newCorsSupportinstance based on the provided configuration expected to contain mapped cross-origin config information.voidhandle(ServerRequest req, ServerResponse res) protected CorsSupportHelper<ServerRequest, ServerResponse> helper()voidtoString()Methods inherited from class io.helidon.cors.CorsSupportBase
describe, name, prepareResponse, processRequestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.webserver.ServerLifecycle
afterStop, beforeStart
-
Method Details
-
builder
A new fluent API builder to customize setup of CorsSupport.- Returns:
- new builder for CorsSupport
-
create
Create CORS support with defaults.- Returns:
- new CorsSupport with default settings
-
create
Creates a newCorsSupportinstance based on the provided configuration expected to match the basicCrossOriginConfigformat.- Parameters:
config- node containing the cross-origin information- Returns:
- initialized
CorsSupportinstance
-
createMapped
Creates a newCorsSupportinstance based on the provided configuration expected to contain mapped cross-origin config information.- Parameters:
config- node containing the mapped cross-origin information- Returns:
- initialized
CorsSupportinstance
-
routing
- Specified by:
routingin interfaceHttpService
-
handle
-
toString
-
helper
- Overrides:
helperin classCorsSupportBase<ServerRequest,ServerResponse, CorsSupport, CorsSupport.Builder>
-