public abstract class AbstractConfigurableProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static ResourceBundle |
BUNDLE |
protected static Logger |
LOG |
| Constructor and Description |
|---|
AbstractConfigurableProvider() |
| Modifier and Type | Method and Description |
|---|---|
Bus |
getBus()
Gets the Bus.
|
List<String> |
getConsumeMediaTypes()
Gets the custom Consumes media types
|
boolean |
getEnableBuffering()
Gets the value of the buffering mode
|
boolean |
getEnableStreaming()
Gets the value of the streaming mode
|
List<String> |
getProduceMediaTypes()
Gets the custom Produces media types
|
void |
init(List<ClassResourceInfo> resources)
Gives providers a chance to introspect the JAX-RS model classes.
|
protected boolean |
isPayloadEmpty(javax.ws.rs.core.HttpHeaders headers) |
protected boolean |
isPayloadEmpty(javax.ws.rs.core.MultivaluedMap<String,String> headers) |
protected void |
reportEmptyContentLength() |
void |
setBus(Bus b)
Sets the Bus
|
void |
setConsumeMediaTypes(List<String> types)
Sets custom Consumes media types; can be used to override static
Consumes annotation value set on the provider. |
void |
setEnableBuffering(boolean enableBuf)
Enables the buffering mode.
|
void |
setEnableStreaming(boolean enableStream)
Enables the support for streaming.
|
void |
setProduceMediaTypes(List<String> types)
Sets custom Produces media types; can be used to override static
Produces annotation value set on the provider. |
protected static final ResourceBundle BUNDLE
protected static final Logger LOG
public void setBus(Bus b)
b - public Bus getBus()
public void setConsumeMediaTypes(List<String> types)
Consumes annotation value set on the provider.types - the media typespublic List<String> getConsumeMediaTypes()
public void setProduceMediaTypes(List<String> types)
Produces annotation value set on the provider.types - the media typespublic List<String> getProduceMediaTypes()
public void setEnableBuffering(boolean enableBuf)
enableBuf - the value of the buffering mode, false is default.public boolean getEnableBuffering()
public void setEnableStreaming(boolean enableStream)
enableStream - the value of the streaming mode, false is default.public boolean getEnableStreaming()
public void init(List<ClassResourceInfo> resources)
resources - protected boolean isPayloadEmpty(javax.ws.rs.core.HttpHeaders headers)
protected boolean isPayloadEmpty(javax.ws.rs.core.MultivaluedMap<String,String> headers)
protected void reportEmptyContentLength()
throws javax.ws.rs.core.NoContentException
javax.ws.rs.core.NoContentExceptionApache CXF