|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
public abstract class AbstractConfigurableProvider
Constructor Summary | |
---|---|
AbstractConfigurableProvider()
|
Method Summary | |
---|---|
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)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractConfigurableProvider()
Method Detail |
---|
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)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |