java.lang.Object
io.helidon.cors.CorsSupportBase<ServerRequest,ServerResponse,CorsSupport,CorsSupport.Builder>
io.helidon.webserver.cors.CorsSupport
- All Implemented Interfaces:
Handler,HttpService,ServerLifecycle
@Deprecated(forRemoval=true,
since="4.4.0")
public class CorsSupport
extends CorsSupportBase<ServerRequest,ServerResponse,CorsSupport,CorsSupport.Builder>
implements HttpService, Handler
Deprecated, for removal: This API element is subject to removal in a future version.
SE implementation of
CorsSupportBase.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.Fluent API builder forCorsSupport. -
Method Summary
Modifier and TypeMethodDescriptionstatic CorsSupport.Builderbuilder()Deprecated, for removal: This API element is subject to removal in a future version.A new fluent API builder to customize setup of CorsSupport.static CorsSupportcreate()Deprecated, for removal: This API element is subject to removal in a future version.Create CORS support with defaults.static CorsSupportDeprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadstatic CorsSupportDeprecated, for removal: This API element is subject to removal in a future version.Creates a newCorsSupportinstance based on the provided configuration expected to match the basicCrossOriginConfigformat.static CorsSupportcreateMapped(Config config) Deprecated, for removal: This API element is subject to removal in a future version.usecreateMapped(io.helidon.config.Config)insteadstatic CorsSupportcreateMapped(Config config) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newCorsSupportinstance based on the provided configuration expected to contain mapped cross-origin config information.voidhandle(ServerRequest req, ServerResponse res) Deprecated, for removal: This API element is subject to removal in a future version.Handle request.protected CorsSupportHelper<ServerRequest, ServerResponse> helper()Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Updates the routing to add handlers of this service.toString()Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.A new fluent API builder to customize setup of CorsSupport.- Returns:
- new builder for CorsSupport
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Create CORS support with defaults.- Returns:
- new CorsSupport with default settings
-
create
Deprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadCreates a newCorsSupportinstance based on the provided configuration expected to match the basicCrossOriginConfigformat.- Parameters:
config- node containing the cross-origin information- Returns:
- initialized
CorsSupportinstance
-
create
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.usecreateMapped(io.helidon.config.Config)insteadCreates 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
-
createMapped
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:HttpServiceUpdates the routing to add handlers of this service.- Specified by:
routingin interfaceHttpService- Parameters:
rules- to update
-
handle
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version. -
helper
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
helperin classCorsSupportBase<ServerRequest,ServerResponse, CorsSupport, CorsSupport.Builder>
-
helidon-webserver-corswithio.helidon.webserver.cors.CorsFeatureeither fromServiceRegistry, or through one of the feature's static factory or builder methods; paths configured in config are registered first, before paths configured through service registry; this class will be removed in a future version of Helidon