public abstract class AbstractRuntimeDelegate extends RuntimeDelegate
RuntimeDelegate that
provides support common to the client and server.RuntimeDelegate.HeaderDelegate<T>JAXRS_RUNTIME_DELEGATE_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRuntimeDelegate(org.glassfish.hk2.api.ServiceLocator serviceLocator)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> RuntimeDelegate.HeaderDelegate<T> |
createHeaderDelegate(Class<T> type)
Obtain an instance of a
RuntimeDelegate.HeaderDelegate for the supplied class. |
Link.Builder |
createLinkBuilder()
Create a new instance of a
Link.Builder. |
Response.ResponseBuilder |
createResponseBuilder()
Create a new instance of a
Response.ResponseBuilder. |
UriBuilder |
createUriBuilder()
Create a new instance of a
UriBuilder. |
Variant.VariantListBuilder |
createVariantListBuilder()
Create a new instance of a
Variant.VariantListBuilder. |
createEndpoint, getInstance, setInstanceprotected AbstractRuntimeDelegate(org.glassfish.hk2.api.ServiceLocator serviceLocator)
serviceLocator - HK2 service locator.public Variant.VariantListBuilder createVariantListBuilder()
RuntimeDelegateVariant.VariantListBuilder.createVariantListBuilder in class RuntimeDelegateVariantListBuilder instance.Variant.VariantListBuilderpublic Response.ResponseBuilder createResponseBuilder()
RuntimeDelegateResponse.ResponseBuilder.createResponseBuilder in class RuntimeDelegateResponseBuilder instance.Response.ResponseBuilderpublic UriBuilder createUriBuilder()
RuntimeDelegateUriBuilder.createUriBuilder in class RuntimeDelegateUriBuilder instance.UriBuilderpublic Link.Builder createLinkBuilder()
RuntimeDelegateLink.Builder.createLinkBuilder in class RuntimeDelegateLink.Builder instance.Link.Builderpublic <T> RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(Class<T> type)
RuntimeDelegateRuntimeDelegate.HeaderDelegate for the supplied class. An
implementation is required to support the following values for type:
CacheControl, Cookie,
EntityTag, Link,
NewCookie, MediaType
and java.util.Date.createHeaderDelegate in class RuntimeDelegateT - header type.type - the class of the header.HeaderDelegate for the supplied type.RuntimeDelegate.HeaderDelegateCopyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.