public class FixedMimeTypePolicy extends Object implements MimeTypePolicy
Constructor and Description |
---|
FixedMimeTypePolicy() |
FixedMimeTypePolicy(String aMimeTypeParameter) |
FixedMimeTypePolicy(String aMimeTypeParameter,
DatabaseMapping mapping) |
Modifier and Type | Method and Description |
---|---|
String |
getMimeType()
Return the default mime type for this policy.
|
String |
getMimeType(Object anObject)
The mime type will be obtained from the objects field/property that is
mapped to the XML attribute with name "contentType" and namespace URI
"http://www.w3.org/2005/05/xmlmime".
|
void |
setMimeType(String aString)
Set the default mime type for this policy.
|
public FixedMimeTypePolicy()
public FixedMimeTypePolicy(String aMimeTypeParameter)
public FixedMimeTypePolicy(String aMimeTypeParameter, DatabaseMapping mapping)
public String getMimeType(Object anObject)
getMimeType
in interface MimeTypePolicy
anObject
- - fixed non-dynamic implementors will ignore this parameterpublic String getMimeType()
public void setMimeType(String aString)
EclipseLink 2.3.2, "build v20111125-r10461" API Reference