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 CorsSupportCreates a newCorsSupportinstance based on the provided configuration expected to match the basicCrossOriginConfigformat.static CorsSupportcreateMapped(Config config) Creates a newCorsSupportinstance based on the provided configuration expected to contain mapped cross-origin config information.voidhandle(ServerRequest req, ServerResponse res) Handle request.protected CorsSupportHelper<ServerRequest, ServerResponse> helper()voidUpdates the routing to add handlers of this service.toString()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
afterStart, 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
Description copied from interface:HttpServiceUpdates the routing to add handlers of this service.- Specified by:
routingin interfaceHttpService- Parameters:
rules- to update
-
handle
Description copied from interface:HandlerHandle request. This method must not return before the response is completed. If the method does asynchronous operations, it must wait for them to complete before returning. -
toString
-
helper
- Overrides:
helperin classCorsSupportBase<ServerRequest,ServerResponse, CorsSupport, CorsSupport.Builder>
-