Package org.glassfish.jersey.internal
Class AbstractRuntimeDelegate
- java.lang.Object
-
- jakarta.ws.rs.ext.RuntimeDelegate
-
- org.glassfish.jersey.internal.AbstractRuntimeDelegate
-
- Direct Known Subclasses:
RuntimeDelegateImpl,RuntimeDelegateImpl
public abstract class AbstractRuntimeDelegate extends RuntimeDelegate
An abstract implementation ofRuntimeDelegatethat provides support common to the client and server.- Author:
- Paul Sandoz
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jakarta.ws.rs.ext.RuntimeDelegate
RuntimeDelegate.HeaderDelegate<T>
-
-
Field Summary
-
Fields inherited from class jakarta.ws.rs.ext.RuntimeDelegate
JAXRS_RUNTIME_DELEGATE_PROPERTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRuntimeDelegate(Set<HeaderDelegateProvider> hps)Initialization constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityPart.BuildercreateEntityPartBuilder(String partName)Create a new instance of aEntityPart.Builder.<T> RuntimeDelegate.HeaderDelegate<T>createHeaderDelegate(Class<T> type)Obtain an instance of aRuntimeDelegate.HeaderDelegatefor the supplied class.Link.BuildercreateLinkBuilder()Create a new instance of aLink.Builder.Response.ResponseBuildercreateResponseBuilder()Create a new instance of aResponse.ResponseBuilder.UriBuildercreateUriBuilder()Create a new instance of aUriBuilder.Variant.VariantListBuildercreateVariantListBuilder()Create a new instance of aVariant.VariantListBuilder.-
Methods inherited from class jakarta.ws.rs.ext.RuntimeDelegate
bootstrap, bootstrap, createConfigurationBuilder, createEndpoint, getInstance, setInstance
-
-
-
-
Constructor Detail
-
AbstractRuntimeDelegate
protected AbstractRuntimeDelegate(Set<HeaderDelegateProvider> hps)
Initialization constructor. The injection manager will be shut down.- Parameters:
hps- allHeaderDelegateProviderinstances registered internally.
-
-
Method Detail
-
createVariantListBuilder
public Variant.VariantListBuilder createVariantListBuilder()
Description copied from class:RuntimeDelegateCreate a new instance of aVariant.VariantListBuilder.- Specified by:
createVariantListBuilderin classRuntimeDelegate- Returns:
- new
VariantListBuilderinstance. - See Also:
Variant.VariantListBuilder
-
createResponseBuilder
public Response.ResponseBuilder createResponseBuilder()
Description copied from class:RuntimeDelegateCreate a new instance of aResponse.ResponseBuilder.- Specified by:
createResponseBuilderin classRuntimeDelegate- Returns:
- new
ResponseBuilderinstance. - See Also:
Response.ResponseBuilder
-
createUriBuilder
public UriBuilder createUriBuilder()
Description copied from class:RuntimeDelegateCreate a new instance of aUriBuilder.- Specified by:
createUriBuilderin classRuntimeDelegate- Returns:
- new
UriBuilderinstance. - See Also:
UriBuilder
-
createLinkBuilder
public Link.Builder createLinkBuilder()
Description copied from class:RuntimeDelegateCreate a new instance of aLink.Builder.- Specified by:
createLinkBuilderin classRuntimeDelegate- Returns:
- new
Link.Builderinstance. - See Also:
Link.Builder
-
createHeaderDelegate
public <T> RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(Class<T> type)
Description copied from class:RuntimeDelegateObtain an instance of aRuntimeDelegate.HeaderDelegatefor the supplied class. An implementation is required to support the following values for type:CacheControl,Cookie,EntityTag,Link,NewCookie,MediaTypeandjava.util.Date.- Specified by:
createHeaderDelegatein classRuntimeDelegate- Type Parameters:
T- header type.- Parameters:
type- the class of the header.- Returns:
- an instance of
HeaderDelegatefor the supplied type. - See Also:
RuntimeDelegate.HeaderDelegate
-
createEntityPartBuilder
public EntityPart.Builder createEntityPartBuilder(String partName) throws IllegalArgumentException
Description copied from class:RuntimeDelegateCreate a new instance of aEntityPart.Builder.This method is not intended to be invoked by applications. Call
EntityPart.withName(String)instead.- Specified by:
createEntityPartBuilderin classRuntimeDelegate- Parameters:
partName- name for this part within the multipart body.- Returns:
- new
EntityPart.Builderinstance with specified part name - Throws:
IllegalArgumentException- ifpartNameisnull.
-
-