|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jersey.api.client.config.DefaultClientConfig
public class DefaultClientConfig
A default client configuration.
This class may be extended for specific configuration purposes.
Field Summary |
---|
Fields inherited from interface com.sun.jersey.api.client.config.ClientConfig |
---|
PROPERTY_BUFFER_RESPONSE_ENTITY_ON_EXCEPTION, PROPERTY_CHUNKED_ENCODING_SIZE, PROPERTY_CONNECT_TIMEOUT, PROPERTY_FOLLOW_REDIRECTS, PROPERTY_READ_TIMEOUT |
Fields inherited from interface com.sun.jersey.core.util.FeaturesAndProperties |
---|
FEATURE_DISABLE_XML_SECURITY, FEATURE_FORMATTED, FEATURE_PRE_1_4_PROVIDER_PRECEDENCE, FEATURE_XMLROOTELEMENT_PROCESSING |
Constructor Summary | |
---|---|
DefaultClientConfig()
|
|
DefaultClientConfig(java.lang.Class<?>... cs)
|
|
DefaultClientConfig(java.util.Set<java.lang.Class<?>> cs)
|
Method Summary | |
---|---|
java.util.Set<java.lang.Class<?>> |
getClasses()
Get the set of provider classes to be instantiated in the scope of the Client |
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 client. |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Get the map of properties associated with the client. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value of a property. |
boolean |
getPropertyAsFeature(java.lang.String name)
Get a feature that is boolean property of the property bag. |
java.util.Set<java.lang.Object> |
getSingletons()
Get the singleton provider instances to be utilized by the client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultClientConfig()
public DefaultClientConfig(java.lang.Class<?>... cs)
public DefaultClientConfig(java.util.Set<java.lang.Class<?>> cs)
Method Detail |
---|
public java.util.Set<java.lang.Class<?>> getClasses()
ClientConfig
A provider class is a Java class with a Provider
annotation declared on the class that implements a specific service
interface.
getClasses
in interface ClientConfig
public java.util.Set<java.lang.Object> getSingletons()
ClientConfig
When the client is initialized the set of provider instances will be combined and take precendence over the instances of provider classes.
getSingletons
in interface ClientConfig
public java.util.Map<java.lang.String,java.lang.Boolean> getFeatures()
FeaturesAndProperties
getFeatures
in interface FeaturesAndProperties
public boolean getFeature(java.lang.String featureName)
FeaturesAndProperties
getFeature
in interface FeaturesAndProperties
featureName
- the feature name.
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
FeaturesAndProperties
getProperties
in interface FeaturesAndProperties
public java.lang.Object getProperty(java.lang.String propertyName)
FeaturesAndProperties
getProperty
in interface FeaturesAndProperties
propertyName
- the property name.
public boolean getPropertyAsFeature(java.lang.String name)
ClientConfig
getPropertyAsFeature
in interface ClientConfig
name
- the name of the feature;
Boolean
and that value is true, otherwise false.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |