SAP NetWeaver '04

com.sapportals.wcm.service.mimehandler
Interface IMimeHandlerService

[contained in: com.sap.netweaver.bc.rf.service.par - bc.rf.global.service.mime_api.jar]
All Superinterfaces:
IService

public interface IMimeHandlerService
extends IService

This service provides informations about mime types.

Copyright 2004 SAP AG


Method Summary
 IMime get(IResource resource)
          Returns a mime type for the given resource.
 IMime get(RID rid)
          Returns a mime type for the given RID.
 IMime get(java.lang.String extension)
          Returns a mime type for the given extension.
 java.lang.String getDescription(java.lang.String mime)
          Deprecated. as of NW04. Use IMime#getDescription(String) instead.
 java.lang.String getDescription(java.lang.String mime, java.util.Locale locale)
          Deprecated. as of NW04. Use IMime#getDescription(String,Locale) instead.
 java.lang.String[] getExtensionsForMimetype(java.lang.String mimetype)
          Deprecated. as of NW04. Use IMime#getExtensions() instead.
 java.lang.String getImage(IResource resource)
          Deprecated. as of NW04. Use IMime#getImage instead
 java.lang.String getImage(java.lang.String mime)
          Deprecated. as of NW04. Use IMime#getImage instead.
 java.lang.String getImagePath(IResource resource)
          Deprecated. as of NW04. Use IMime#getImagePath instead
 java.lang.String getImagePath(java.lang.String mime)
          Deprecated. as of NW04. Use IMime#getImagePath instead
 IMime getMime(java.lang.String mime)
          Returns a mime type for the given mime type string representation.
 java.lang.String getMimetypeForExtension(java.lang.String extension)
          Deprecated. as of NW04. Use #get(String) instead.
 java.lang.String getMimetypeForRid(RID rid)
          Deprecated. as of NW04. Use #get(RID) instead
 java.lang.String getMimetypeForURI(URI uri)
          Deprecated. as of NW04. Use #get(RID)instead
 IMime[] getMimetypes()
          Returns all registered mime types.
 
Methods inherited from interface com.sapportals.wcm.service.IService
getDescription, getDescription, getID
 

Method Detail

get

public IMime get(java.lang.String extension)
          throws WcmException
Returns a mime type for the given extension. If the extension is unknown a default mime type will be returned (application/octet-stream)
Parameters:
extension - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value
Throws:
WcmException - Exception raised in failure situation

getMime

public IMime getMime(java.lang.String mime)
              throws WcmException
Returns a mime type for the given mime type string representation. If the mime type is unknown a default mime type will be returned (application/octet-stream)
Parameters:
mime - TBD: Description of the incoming method parameter
Returns:
mime
Throws:
WcmException - Exception raised in failure situation

get

public IMime get(IResource resource)
          throws WcmException
Returns a mime type for the given resource. If the resource extension is unknown a default mime type will be returned (application/octet-stream)
Parameters:
resource - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value
Throws:
WcmException - Exception raised in failure situation

get

public IMime get(RID rid)
          throws WcmException
Returns a mime type for the given RID. If the RID's extension is unknown a default mime type will be returned (application/octet-stream)
Parameters:
rid - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value
Throws:
WcmException - Exception raised in failure situation

getMimetypes

public IMime[] getMimetypes()
                     throws WcmException
Returns all registered mime types. Returns an empty array if no mime types were registered.
Returns:
mimetypes
Throws:
WcmException - Exception raised in failure situation

getExtensionsForMimetype

public java.lang.String[] getExtensionsForMimetype(java.lang.String mimetype)
Deprecated. as of NW04. Use IMime#getExtensions() instead.

This method returns the extensions for a given mime type (or an empty array if there are no extensions for the given mime type)
Parameters:
mimetype - TBD: Description of the incoming method parameter
Returns:
extensionsForMimetype

getMimetypeForExtension

public java.lang.String getMimetypeForExtension(java.lang.String extension)
Deprecated. as of NW04. Use #get(String) instead.

This method returns the mime type for a given extension
Parameters:
extension - TBD: Description of the incoming method parameter
Returns:
mimetypeForExtension

getMimetypeForURI

public java.lang.String getMimetypeForURI(URI uri)
Deprecated. as of NW04. Use #get(RID)instead

This method returns the mime type for a given URI
Parameters:
uri - TBD: Description of the incoming method parameter
Returns:
mimetypeForURI

getMimetypeForRid

public java.lang.String getMimetypeForRid(RID rid)
Deprecated. as of NW04. Use #get(RID) instead

Get the MimetypeForRid attribute of the IMimeHandlerService object.
Parameters:
rid - TBD: Description of the incoming method parameter
Returns:
mimetypeForRid

getImage

public java.lang.String getImage(java.lang.String mime)
Deprecated. as of NW04. Use IMime#getImage instead.

This method returns the image (icon) for a given mime type
Parameters:
mime - TBD: Description of the incoming method parameter
Returns:
image

getImage

public java.lang.String getImage(IResource resource)
Deprecated. as of NW04. Use IMime#getImage instead

Get the Image attribute of the IMimeHandlerService object.
Parameters:
resource - TBD: Description of the incoming method parameter
Returns:
image

getImagePath

public java.lang.String getImagePath(java.lang.String mime)
Deprecated. as of NW04. Use IMime#getImagePath instead

Get the ImagePath attribute of the IMimeHandlerService object.
Parameters:
mime - TBD: Description of the incoming method parameter
Returns:
imagePath

getImagePath

public java.lang.String getImagePath(IResource resource)
Deprecated. as of NW04. Use IMime#getImagePath instead

Get the ImagePath attribute of the IMimeHandlerService object.
Parameters:
resource - TBD: Description of the incoming method parameter
Returns:
imagePath

getDescription

public java.lang.String getDescription(java.lang.String mime)
Deprecated. as of NW04. Use IMime#getDescription(String) instead.

This method returns the description for a given mime type
Parameters:
mime - TBD: Description of the incoming method parameter
Returns:
description

getDescription

public java.lang.String getDescription(java.lang.String mime,
                                       java.util.Locale locale)
Deprecated. as of NW04. Use IMime#getDescription(String,Locale) instead.

this method returns the description for a given mime type
Parameters:
mime - TBD: Description of the incoming method parameter
locale - TBD: Description of the incoming method parameter
Returns:
description

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.