Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-02


oracle.irm.engine.content.type
Interface ContentType


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.

Creation

Instances of Content Type objects can be created using the following factory style method(s).

ContentType object = createContentType(
    extensions,
    sealedExtension,
    sealedMimeType,
    mimeTypes,
    expectOverwrites);

Collections

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();

XML Serialization

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

getExtensions

String[] getExtensions()
The unsealed file extensions. There may be more than one - 'jpg' and 'jpeg' are considered equivalent, for instance.

State

The array returned by this method can be safely altered without affecting the internal state of the object.
Returns:
the value of the property. This method can return null.

getSealedExtension

String getSealedExtension()
The sealed file extension.
Returns:
the value of the property. This method will never return null.

getSealedMimeType

String getSealedMimeType()
The sealed MIME type.
Returns:
the value of the property. This method will never return null.

getMimeTypes

String[] getMimeTypes()
The unsealed MIME type.

State

The array returned by this method can be safely altered without affecting the internal state of the object.
Returns:
the value of the property. This method can return null.

getExpectOverwrites

boolean getExpectOverwrites()
Content format that supports edits. For a content format that expects to be resealed the public header will be padded with spaces so that it can be overwritten with a larger public header without having to write out the encrypted body.
Returns:
the value of the property. This method can return null.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-02


Copyright © 2010, Oracle. All rights reserved.