org.glassfish.jersey.internal
Class AbstractRuntimeDelegate

java.lang.Object
  extended by javax.ws.rs.ext.RuntimeDelegate
      extended by org.glassfish.jersey.internal.AbstractRuntimeDelegate
Direct Known Subclasses:
RuntimeDelegateImpl, RuntimeDelegateImpl

public abstract class AbstractRuntimeDelegate
extends RuntimeDelegate

An abstract implementation of RuntimeDelegate that provides support common to the client and server.

Author:
Paul Sandoz

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.ws.rs.ext.RuntimeDelegate
RuntimeDelegate.HeaderDelegate<T>
 
Field Summary
 
Fields inherited from class javax.ws.rs.ext.RuntimeDelegate
JAXRS_RUNTIME_DELEGATE_PROPERTY
 
Constructor Summary
protected AbstractRuntimeDelegate(org.glassfish.hk2.api.ServiceLocator serviceLocator)
          Initialization constructor.
 
Method Summary
<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.
 
Methods inherited from class javax.ws.rs.ext.RuntimeDelegate
createEndpoint, getInstance, setInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRuntimeDelegate

protected AbstractRuntimeDelegate(org.glassfish.hk2.api.ServiceLocator serviceLocator)
Initialization constructor.

Parameters:
serviceLocator - HK2 service locator.
Method Detail

createVariantListBuilder

public Variant.VariantListBuilder createVariantListBuilder()
Description copied from class: RuntimeDelegate
Create a new instance of a Variant.VariantListBuilder.

Specified by:
createVariantListBuilder in class RuntimeDelegate
Returns:
new VariantListBuilder instance.
See Also:
Variant.VariantListBuilder

createResponseBuilder

public Response.ResponseBuilder createResponseBuilder()
Description copied from class: RuntimeDelegate
Create a new instance of a Response.ResponseBuilder.

Specified by:
createResponseBuilder in class RuntimeDelegate
Returns:
new ResponseBuilder instance.
See Also:
Response.ResponseBuilder

createUriBuilder

public UriBuilder createUriBuilder()
Description copied from class: RuntimeDelegate
Create a new instance of a UriBuilder.

Specified by:
createUriBuilder in class RuntimeDelegate
Returns:
new UriBuilder instance.
See Also:
UriBuilder

createLinkBuilder

public Link.Builder createLinkBuilder()
Description copied from class: RuntimeDelegate
Create a new instance of a Link.Builder.

Specified by:
createLinkBuilder in class RuntimeDelegate
Returns:
new Link.Builder instance.
See Also:
Link.Builder

createHeaderDelegate

public <T> RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(Class<T> type)
Description copied from class: RuntimeDelegate
Obtain an instance of a RuntimeDelegate.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.

Specified by:
createHeaderDelegate in class RuntimeDelegate
Type Parameters:
T - header type.
Parameters:
type - the class of the header.
Returns:
an instance of HeaderDelegate for the supplied type.
See Also:
RuntimeDelegate.HeaderDelegate


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.