|
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 ContentTypeOperationsEndpoint
Web Service end point interface for Content Type Operations. This interface provides utility methods for getting ContentType
information from file extensions and MIME types. These methods are useful when sealing and unsealing content and MIME type or file extension information is required.
The WSDL for this end point interface can be downloaded from the server using the following URL:
http://irm.example.com/irm_sealing/content_type_operations?wsdl
Requests for this web service should be sent to the following URL:
https://irm.example.com/irm_sealing/content_type_operations
Method Summary | |
---|---|
ContentType |
getContentTypeFromExtension(String extension) Get the content type from a sealed or unsealed file extension. |
ContentType |
getContentTypeFromMimeType(String mimeType) Get the content type from a MIME type. |
ContentType |
getContentTypeFromPath(String path) Get the content type from a file path. |
String |
getSealedFileName(String name) Convert a file name into the corresponding sealed file name. |
boolean |
isSealableFile(String path) Determines if a file can be sealed, given a path to the file. |
boolean |
isSealableMimeType(String mimeType) Determine if content for a specified MIME type can be sealed. |
boolean |
isSealedFile(String path) Determines if a file is sealed, given a path to the file. |
boolean |
isSealedMimeType(String mimeType) Determine if a specified MIME type describes sealed content. |
ContentType[] |
listContentTypes() Returns a collection of all content type mappings known to the system. |
ContentType[] |
listContentTypesFromMimeType(String mimeType) List all the content type mappings corresponding to a given MIME type. |
String[] |
listExtensions(boolean sealed, boolean unsealed) Returns a collection of recognized file extensions. |
String[] |
listMimeTypes(boolean sealed, boolean unsealed) Returns a collection of recognized MIME types. |
Method Detail |
---|
ContentType getContentTypeFromMimeType(String mimeType) throws UnsupportedContentTypeFault, IllegalMimeTypeFault
mimeType
- file MIME type. e.g. text/html.UnsupportedContentTypeFault
- the MIME type does not correspond to a recognized sealed or sealable document.IllegalMimeTypeFault
- the MIME type is syntactically invalid.ContentType[] listContentTypesFromMimeType(String mimeType) throws UnsupportedContentTypeFault, IllegalMimeTypeFault
mimeType
- file MIME type. e.g. text/html.UnsupportedContentTypeFault
- the MIME type does not correspond to a recognized sealed or sealable document.IllegalMimeTypeFault
- the MIME type is syntactically invalid.ContentType getContentTypeFromExtension(String extension) throws UnsupportedContentTypeFault
extension
- file extension, without leading period.UnsupportedContentTypeFault
- the extension does not correspond to a recognized sealed or sealable document.ContentType getContentTypeFromPath(String path) throws UnsupportedContentTypeFault
getContentTypeFromExtension
.path
- file path. Only the extension is significant.UnsupportedContentTypeFault
- the file does not correspond to a recognized sealed or sealable document.String[] listMimeTypes(boolean sealed, boolean unsealed)
sealed
- if true, sealed MIME types are returned.unsealed
- if true, unsealed MIME types are returned.String[] listExtensions(boolean sealed, boolean unsealed)
sealed
- if true, sealed file extensions are returned.unsealed
- if true, unsealed file extensions are returned.ContentType[] listContentTypes()
boolean isSealableFile(String path)
path
- file path.boolean isSealedFile(String path)
path
- file path.boolean isSealableMimeType(String mimeType) throws IllegalMimeTypeFault
mimeType
- a MIME type.IllegalMimeTypeFault
- the MIME type is syntactically invalid.boolean isSealedMimeType(String mimeType) throws IllegalMimeTypeFault
mimeType
- a MIME type.IllegalMimeTypeFault
- the MIME type is syntactically invalid.String getSealedFileName(String name) throws UnsupportedContentTypeFault
name
- the file name.UnsupportedContentTypeFault
- the file name does not correspond to a recognized sealed or sealable document.
|
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 |