public class RuntimeDelegateImpl extends AbstractRuntimeDelegate
RuntimeDelegate
.
This overrides the default implementation of RuntimeDelegate
from
jersey-common which does not implement createEndpoint(jakarta.ws.rs.core.Application, java.lang.Class)
method.RuntimeDelegate.HeaderDelegate<T>
JAXRS_RUNTIME_DELEGATE_PROPERTY
Constructor and Description |
---|
RuntimeDelegateImpl() |
Modifier and Type | Method and Description |
---|---|
<T> T |
createEndpoint(Application application,
Class<T> endpointType)
Create a configured instance of the supplied endpoint type.
|
createHeaderDelegate, createLinkBuilder, createResponseBuilder, createUriBuilder, createVariantListBuilder
getInstance, setInstance
public <T> T createEndpoint(Application application, Class<T> endpointType) throws IllegalArgumentException, UnsupportedOperationException
RuntimeDelegate
createEndpoint
in class RuntimeDelegate
T
- endpoint type.application
- the application configuration.endpointType
- the type of endpoint instance to be created.IllegalArgumentException
- if application is null or the requested endpoint type is not supported.UnsupportedOperationException
- if the implementation supports no endpoint types.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.