|
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 |
public interface ContentType
Sealed and unsealed content type information. 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.
Instances of Content Type objects can be created using the following factory style method(s).
ContentType object = createContentType
(
extensions,
sealedExtension,
sealedMimeType,
mimeTypes,
expectOverwrites);
Collections for ContentType
objects can be created using the following factory method. This method creates the most appropriate collection implementation class for storing ContentType
elements.
Collection
<ContentType
> object =createContentTypes
();
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>
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. |
Method Detail |
---|
String[] getExtensions()
String getSealedExtension()
String getSealedMimeType()
String[] getMimeTypes()
boolean getExpectOverwrites()
|
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 |