Web Dynpro API Documentation

com.sap.tc.webdynpro.services.sal.url.api
Class WDWebResourceType

com.sap.tc.webdynpro.services.sal.url.api.WDWebResourceType

public class WDWebResourceType

Defines all needed constants for web resource types.


Field Summary
static WDWebResourceType APPLET
          Constant identifying an applet web resource type.
static WDWebResourceType CSS
          Constant identifying a css web resource type.
static WDWebResourceType DOC
          Constant identifying word files.
static WDWebResourceType FLASH
          Constant identifying a flash web resource type.
static WDWebResourceType GIF_IMAGE
          Constant identifying a gif web resource type.
static WDWebResourceType HTML
          Constant identifying an html web resource type.
static WDWebResourceType JAVA
          Constant identifying a Java web resource type.
static WDWebResourceType JAVA_SCRIPT
          Constant identifying a Java script web resource type.
static WDWebResourceType JPG_IMAGE
          Constant identifying a jpg web resource type.
static WDWebResourceType PDF
          Constant identifying a pdf web resource type.
static WDWebResourceType PNG
          Constant identifying a png web resource type.
static WDWebResourceType PPT
          Constant identifying powerpoints.
static WDWebResourceType PS
          Constant identifying post script files.
static WDWebResourceType RTF
          Constant identifying rich text files.
static WDWebResourceType SVG
          Constant identifying a svg web resource type.
static WDWebResourceType TXT
          Constant identifying a txt file.
static WDWebResourceType UNKNOWN
          Constant identifying unknown file.
static WDWebResourceType VML
          Constant identifying a vml web resource type.
static WDWebResourceType WD_APPLICATION
          Constant identifying a Web Dynpro application.
static WDWebResourceType XLS
          Constant identifying excel files.
static WDWebResourceType XML
          Constant identifying an xml web resource type.
static WDWebResourceType XML_CONFIGURATION
          Constant identifying a xml configuration file.
 
Constructor Summary
protected WDWebResourceType(java.lang.String fileExtension, java.lang.String[] htmlMimes, boolean isAttachment, boolean addToContainer)
           
  WDWebResourceType(java.lang.String fileExtension, java.lang.String htmlMime, boolean isAttachment)
          Constructor for WDWebWDWebResourceType.
protected WDWebResourceType(java.lang.String fileExtension, java.lang.String htmlMime, boolean isAttachment, boolean addToContainer)
           
 
Method Summary
 java.lang.String getFileExtension()
          Return is the file extension of the web resource type.
 java.lang.String getHtmlMime()
          Return is the MIME type associated to the web resource type.
static com.sap.tc.webdynpro.services.sal.util.cache.ResourceType getResourceTypeForFileExtentsion(java.lang.String fileExtension)
          Deprecated. please use getWebResourceTypeForFileExtension This method has been kept for backward compatibility reasons only and may be withdrawn with the first new NetWeaver release in 2006.
static com.sap.tc.webdynpro.services.sal.util.cache.ResourceType getResourceTypeForHtmlMime(java.lang.String htmlMime)
          Deprecated. please use getWebResourceTypeForHtmlMime This method has been kept for backward compatibility reasons only and may be withdrawn with the first new NetWeaver release in 2006.
static WDWebResourceType getWebResourceType(java.lang.String htmlMime, java.lang.String fileExtension)
          Method getWebResourceType: returns WDWebResourceType first searches WDWebResourceType for content stream (htmlMime) and then (if it was not found) searches for the fileExtension.
static WDWebResourceType getWebResourceTypeForFileExtension(java.lang.String fileExtension)
          Method getTypeForFileExtension: returns WDWebResourceType for given fileExtension, if a defined WDWebResourceType matches to fileExtension, else returns null
static WDWebResourceType getWebResourceTypeForFileExtentsion(java.lang.String fileExtension)
          Deprecated. The name of this method contained a typo, use getWebResourceTypeForFileExtension(String) instead. The method with the old name has been kept for backward compatibility reasons only and may be withdrawn with the first new NetWeaver release in 2006.
static WDWebResourceType getWebResourceTypeForHtmlMime(java.lang.String htmlMime)
          Method getTypeForHtmlMime: returns WDWebResourceType for given mimetype, if a defined WDWebResourceType matches to mimetype, else returns null
 boolean isAttachment()
          Returns true if the web resource type is an HTTP attachement.
 

Field Detail

GIF_IMAGE

public static final WDWebResourceType GIF_IMAGE
Constant identifying a gif web resource type.

JPG_IMAGE

public static final WDWebResourceType JPG_IMAGE
Constant identifying a jpg web resource type.

VML

public static final WDWebResourceType VML
Constant identifying a vml web resource type.

PNG

public static final WDWebResourceType PNG
Constant identifying a png web resource type.

SVG

public static final WDWebResourceType SVG
Constant identifying a svg web resource type.

JAVA_SCRIPT

public static final WDWebResourceType JAVA_SCRIPT
Constant identifying a Java script web resource type.

XML

public static final WDWebResourceType XML
Constant identifying an xml web resource type.

CSS

public static final WDWebResourceType CSS
Constant identifying a css web resource type.

JAVA

public static final WDWebResourceType JAVA
Constant identifying a Java web resource type.

APPLET

public static final WDWebResourceType APPLET
Constant identifying an applet web resource type.

FLASH

public static final WDWebResourceType FLASH
Constant identifying a flash web resource type.

PDF

public static final WDWebResourceType PDF
Constant identifying a pdf web resource type.

HTML

public static final WDWebResourceType HTML
Constant identifying an html web resource type.

WD_APPLICATION

public static final WDWebResourceType WD_APPLICATION
Constant identifying a Web Dynpro application.

XML_CONFIGURATION

public static final WDWebResourceType XML_CONFIGURATION
Constant identifying a xml configuration file.

TXT

public static final WDWebResourceType TXT
Constant identifying a txt file.

UNKNOWN

public static final WDWebResourceType UNKNOWN
Constant identifying unknown file.

PPT

public static final WDWebResourceType PPT
Constant identifying powerpoints.

RTF

public static final WDWebResourceType RTF
Constant identifying rich text files.

XLS

public static final WDWebResourceType XLS
Constant identifying excel files.

DOC

public static final WDWebResourceType DOC
Constant identifying word files.

PS

public static final WDWebResourceType PS
Constant identifying post script files.
Constructor Detail

WDWebResourceType

protected WDWebResourceType(java.lang.String fileExtension,
                            java.lang.String htmlMime,
                            boolean isAttachment,
                            boolean addToContainer)

WDWebResourceType

protected WDWebResourceType(java.lang.String fileExtension,
                            java.lang.String[] htmlMimes,
                            boolean isAttachment,
                            boolean addToContainer)

WDWebResourceType

public WDWebResourceType(java.lang.String fileExtension,
                         java.lang.String htmlMime,
                         boolean isAttachment)
Constructor for WDWebWDWebResourceType.
Parameters:
fileExtension -  
htmlMime -  
isAttachment -  
Method Detail

getWebResourceTypeForFileExtentsion

public static final WDWebResourceType getWebResourceTypeForFileExtentsion(java.lang.String fileExtension)
Deprecated. The name of this method contained a typo, use getWebResourceTypeForFileExtension(String) instead. The method with the old name has been kept for backward compatibility reasons only and may be withdrawn with the first new NetWeaver release in 2006.

Method getTypeForFileExtentsion: returns WDWebResourceType for given fileExtension, if a defined WDWebResourceType matches to fileExtension, else returns null
Parameters:
fileExtension -  
Returns:
returns WDWebResourceType for given fileExtension

getWebResourceTypeForFileExtension

public static final WDWebResourceType getWebResourceTypeForFileExtension(java.lang.String fileExtension)
Method getTypeForFileExtension: returns WDWebResourceType for given fileExtension, if a defined WDWebResourceType matches to fileExtension, else returns null
Parameters:
fileExtension -  
Returns:
returns WDWebResourceType for given fileExtension

getWebResourceTypeForHtmlMime

public static final WDWebResourceType getWebResourceTypeForHtmlMime(java.lang.String htmlMime)
Method getTypeForHtmlMime: returns WDWebResourceType for given mimetype, if a defined WDWebResourceType matches to mimetype, else returns null
Parameters:
htmlMime -  
Returns:
WDWebResourceType for given mimetype

getWebResourceType

public static final WDWebResourceType getWebResourceType(java.lang.String htmlMime,
                                                         java.lang.String fileExtension)
Method getWebResourceType: returns WDWebResourceType first searches WDWebResourceType for content stream (htmlMime) and then (if it was not found) searches for the fileExtension. If both were not successful, a new WDWebResourceType is created.
Parameters:
htmlMime -  
Returns:
WDWebResourceType for given mimetype

getResourceTypeForFileExtentsion

public static com.sap.tc.webdynpro.services.sal.util.cache.ResourceType getResourceTypeForFileExtentsion(java.lang.String fileExtension)
Deprecated. please use getWebResourceTypeForFileExtension This method has been kept for backward compatibility reasons only and may be withdrawn with the first new NetWeaver release in 2006.

Method getTypeForFileExtentsion: returns ResourceType for given fileExtension, if a defined ResourceType matches to fileExtension, else returns null
Parameters:
fileExtension -  
Returns:
returns ResourceType for given fileExtension

getResourceTypeForHtmlMime

public static com.sap.tc.webdynpro.services.sal.util.cache.ResourceType getResourceTypeForHtmlMime(java.lang.String htmlMime)
Deprecated. please use getWebResourceTypeForHtmlMime This method has been kept for backward compatibility reasons only and may be withdrawn with the first new NetWeaver release in 2006.

Method getTypeForHtmlMime: returns WDWebResourceType for given mimetype, if a defined WDWebResourceType matches to mimetype, else returns null
Parameters:
htmlMime -  
Returns:
WDWebResourceType for given mimetype

getHtmlMime

public java.lang.String getHtmlMime()
Return is the MIME type associated to the web resource type.
Returns:
the mime type in x.400

getFileExtension

public java.lang.String getFileExtension()
Return is the file extension of the web resource type.
Returns:
the file extension of the web resource type

isAttachment

public boolean isAttachment()
Returns true if the web resource type is an HTTP attachement.
Returns:
true if the type is used as file attachment

Web Dynpro API Documentation

Copyright © 2004 SAP AG. Automatically generated Thu Mar 3 2005, 22:15