|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.api.client.config.DefaultClientConfig
public class DefaultClientConfig
A default client configuration.
This class may be extended for specific confguration 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 |
| Constructor Summary | |
|---|---|
DefaultClientConfig()
|
|
| 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)
|
java.util.Map<java.lang.String,java.lang.Boolean> |
getFeatures()
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
|
java.lang.Object |
getProperty(java.lang.String propertyName)
|
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()
| 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 ClientConfigpublic java.util.Set<java.lang.Object> getSingletons()
ClientConfigWhen the client is initialized the set of provider instances will be combined and take precendence over the instances of provider classes.
getSingletons in interface ClientConfigpublic java.util.Map<java.lang.String,java.lang.Boolean> getFeatures()
getFeatures in interface FeaturesAndPropertiespublic boolean getFeature(java.lang.String featureName)
getFeature in interface FeaturesAndPropertiespublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface FeaturesAndPropertiespublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in interface FeaturesAndPropertiespublic boolean getPropertyAsFeature(java.lang.String name)
ClientConfig
getPropertyAsFeature in interface ClientConfigname - 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 | |||||||||