java.lang.Object
io.helidon.webserver.cors.CorsSupportBase<ServerRequest,ServerResponse,CorsSupport,CorsSupport.Builder>
io.helidon.webserver.cors.CorsSupport
- All Implemented Interfaces:
Handler,Service,BiConsumer<ServerRequest,ServerResponse>
public class CorsSupport
extends CorsSupportBase<ServerRequest,ServerResponse,CorsSupport,CorsSupport.Builder>
implements Service, Handler
SE implementation of
CorsSupportBase.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.helidon.webserver.cors.CorsSupportBase
CorsSupportBase.RequestAdapter<T>, CorsSupportBase.ResponseAdapter<T>Nested classes/interfaces inherited from interface io.helidon.webserver.Handler
Handler.EntityHandler<T> -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServerRequest request, ServerResponse response) static CorsSupport.Builderbuilder()static CorsSupportcreate()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.toString()voidupdate(Routing.Rules rules) UpdatesRouting.Ruleswithhandlersrepresenting this service.Methods inherited from class io.helidon.webserver.cors.CorsSupportBase
describe, helper, name, prepareResponse, processRequestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Method Details
-
builder
- Returns:
- new builder for CorsSupport
-
create
- Returns:
- new CorsSupport with default settings
-
update
Description copied from interface:ServiceUpdatesRouting.Ruleswithhandlersrepresenting this service. -
accept
Description copied from interface:Handler- Specified by:
acceptin interfaceBiConsumer<ServerRequest,ServerResponse> - Specified by:
acceptin interfaceHandler- Parameters:
request- an HTTP server request.response- an HTTP server response.
-
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
-
toString
-