com.sun.ws.rest.api.client.config
Interface ClientConfig

All Known Implementing Classes:
DefaultClientConfig

public interface ClientConfig


Method Summary
 boolean getFeature(java.lang.String featureName)
          Get the value of a feature.
 java.util.Map<java.lang.String,java.lang.Boolean> getFeatures()
          Get the map of features associated with the Web application.
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
          Get the map of properties associated with the Web application.
 java.lang.Object getProperty(java.lang.String propertyName)
          Get the value of a property.
 java.util.Set<java.lang.Class<?>> getProviderClasses()
          Get the set of provider classes to be instantiated in the scope of the Client
 

Method Detail

getProviderClasses

java.util.Set<java.lang.Class<?>> getProviderClasses()
Get the set of provider classes to be instantiated in the scope of the Client

A provider class is a Java class with a Provider annotation declared on the class that implements a specific service interface.

Returns:
the set of provider classes. The returned value shall never be null.

getFeatures

java.util.Map<java.lang.String,java.lang.Boolean> getFeatures()
Get the map of features associated with the Web application.

Returns:
the features. The returned value shall never be null.

getFeature

boolean getFeature(java.lang.String featureName)
Get the value of a feature.

Parameters:
featureName - the feature name.
Returns:
true if the feature is present and set to true, otherwise false if the feature is present and set to false or the feature is not present.

getProperties

java.util.Map<java.lang.String,java.lang.Object> getProperties()
Get the map of properties associated with the Web application.

Returns:
the properties. The returned value shall never be null.

getProperty

java.lang.Object getProperty(java.lang.String propertyName)
Get the value of a property.

Parameters:
propertyName - the property name.
Returns:
the property, or null if there is no property present for the given property name.