|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.types.content.type.ContentType
public class ContentType
Content Type type. A content type object contains all the file type information for content that can be sealed. The content type specifies the file extension(s), it's sealed file extension, and the associated MIME types. When content is sealed, the content type allows the sealing process to correctly identify the MIME type, if for example the file extension is not available.
Content Type instances can be serialized as an XML document. This XML document can also be used to recreate a Content Type object. The following XML document shows an example Content Type in XML form.
<?xml version="1.0" encoding="UTF-8"?>
<content:ContentType xmlns:content="http://xmlns.oracle.com/irm/content">
<extensions>html</extensions>
<extensions>htm</extensions>
<sealedExtension>stml</sealedExtension>
<sealedMimeType>application/vnd.sealedmedia.softseal.html</sealedMimeType>
<mimeTypes>text/html</mimeTypes>
<expectOverwrites>false</expectOverwrites>
</content:ContentType>
Constructor Summary | |
---|---|
ContentType() No argument constructor. |
|
ContentType(String[] extensions, String sealedExtension, String sealedMimeType, String[] mimeTypes, boolean expectOverwrites) Constructor. |
Method Summary | |
---|---|
boolean |
getExpectOverwrites() Content format that supports edits. |
String[] |
getExtensions() The unsealed file extensions. |
String[] |
getMimeTypes() The unsealed MIME type. |
String |
getSealedExtension() The sealed file extension. |
String |
getSealedMimeType() The sealed MIME type. |
void |
setExpectOverwrites(boolean value) Content format that supports edits. |
void |
setExtensions(String[] value) The unsealed file extensions. |
void |
setMimeTypes(String[] value) The unsealed MIME type. |
void |
setSealedExtension(String value) The sealed file extension. |
void |
setSealedMimeType(String value) The sealed MIME type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentType()
public ContentType(String[] extensions, String sealedExtension, String sealedMimeType, String[] mimeTypes, boolean expectOverwrites)
Method Detail |
---|
public String[] getExtensions()
public void setExtensions(String[] value)
value
- the new value for the property.public String getSealedExtension()
public void setSealedExtension(String value)
value
- the new value for the property.public String getSealedMimeType()
public void setSealedMimeType(String value)
value
- the new value for the property.public String[] getMimeTypes()
public void setMimeTypes(String[] value)
value
- the new value for the property.public boolean getExpectOverwrites()
public void setExpectOverwrites(boolean value)
value
- the new value for the property.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |