Skip navigation links

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

E12907-02


oracle.irm.engine.types.content.type
Class ContentType

java.lang.Object
  extended by oracle.irm.engine.types.content.type.ContentType

All Implemented Interfaces:
Serializable

public class ContentType
extends Object
implements Serializable

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.

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>

See Also:
Serialized Form

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

ContentType

public ContentType()
No argument constructor.

ContentType

public ContentType(String[] extensions,
                   String sealedExtension,
                   String sealedMimeType,
                   String[] mimeTypes,
                   boolean expectOverwrites)
Constructor.

Method Detail

getExtensions

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

setExtensions

public void setExtensions(String[] value)
The unsealed file extensions. There may be more than one - 'jpg' and 'jpeg' are considered equivalent, for instance.
Parameters:
value - the new value for the property.

getSealedExtension

public String getSealedExtension()
The sealed file extension.
Returns:
the value of the property.

setSealedExtension

public void setSealedExtension(String value)
The sealed file extension.
Parameters:
value - the new value for the property.

getSealedMimeType

public String getSealedMimeType()
The sealed MIME type.
Returns:
the value of the property.

setSealedMimeType

public void setSealedMimeType(String value)
The sealed MIME type.
Parameters:
value - the new value for the property.

getMimeTypes

public String[] getMimeTypes()
The unsealed MIME type.
Returns:
the value of the property.

setMimeTypes

public void setMimeTypes(String[] value)
The unsealed MIME type.
Parameters:
value - the new value for the property.

getExpectOverwrites

public 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.

setExpectOverwrites

public void setExpectOverwrites(boolean value)
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.
Parameters:
value - the new value for the property.

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.