public class RawContentTypeProvider extends java.lang.Object implements ContentTypeProvider
Differs from ConfiguredContentTypeProvider
because it doesn't try to add a charset.
In the adapter configuration file this class is aliased as http-raw-content-type-provider which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
RawContentTypeProvider() |
RawContentTypeProvider(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
java.lang.String |
getContentType(AdaptrisMessage msg)
Get the content type.
|
void |
setContentType(java.lang.String type)
Set the base content type.
|
public RawContentTypeProvider()
public RawContentTypeProvider(java.lang.String type)
public java.lang.String getContentType(AdaptrisMessage msg) throws CoreException
ContentTypeProvider
getContentType
in interface ContentTypeProvider
msg
- the Adaptris MessageCoreException
- wrapping other exceptionspublic java.lang.String getContentType()
public void setContentType(java.lang.String type)
type
- the base content type; defaults to text/plain, supports metadata resolution via
InterlokMessage.resolve(String)
.