com.sapportals.htmlb.statusicons

Class Mimes

java.lang.Object
  extended bycom.sapportals.htmlb.statusicons.Mimes

public class Mimes
extends Object

Global convenience class to access specific Mimes by their ID or their ABAP name

Copyright 2004 SAP AG


Constructor Summary
Mimes()
           
 
Method Summary
static String[] getAvailableNames()
          The only purpose of this method is for demonstrations...
static String getIdByName(String name)
           
static String getMimeUrl(String id)
          Retrieve the URL for a specific mime
static String getShortTextByName(String name)
           
static void refresh()
          Reload the content of this repository
static void setNotFoundUrl(String url)
          Set the URL that is returned if a Mime can not be found Defaults to an empty String ("");
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mimes

public Mimes()
Method Detail

getMimeUrl

public static String getMimeUrl(String id)
Retrieve the URL for a specific mime

Parameters:
id - the ID or ABAP name for the Mime
Returns:
String the URL to use for this mime or the default NotFound URL

getIdByName

public static String getIdByName(String name)

getShortTextByName

public static String getShortTextByName(String name)

refresh

public static void refresh()
Reload the content of this repository


getAvailableNames

public static String[] getAvailableNames()
The only purpose of this method is for demonstrations...


setNotFoundUrl

public static void setNotFoundUrl(String url)
Set the URL that is returned if a Mime can not be found Defaults to an empty String ("");

Parameters:
url - The URL to return if a mime could not be found.


Copyright 2006 SAP AG Complete Copyright Notice