⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exceptionmapping.java

📁 Oracle的J2EE Sample
💻 JAVA
字号:
/*
 * @author                        : Elangovan
 * @Version                       : 1.0
 *
 * Development Environment        :  Oracle9i JDeveloper
 * Name of the File               :  ExceptionMapping.java
 * Creation/Modification History  :
 *
 *       Elangovan    17-APR-2002     Created
 *
 */
package oracle.otnsamples.ibfbs.control;

/**
 * This Class captures the relationship between exception class name, corresponding
 * JSP Page to display the exception in a web browser and corresponding JSP Page
 * to display the exception on a wireless device.
 *
 */
public class ExceptionMapping implements java.io.Serializable {

  private String className;

  private String nextWebScreen;

  private String nextMobileScreen;

  /**
   * Empty Constructor of this Class
   */
  public ExceptionMapping() {}

  /**
   * Constructor with appropriate parameters. Set the Values of the instance
   * variables.
   *
   * @param className       Name of the Exception Class.
   * @param nextWebScreen   Name of the JSP Page to display the error in a browser.
   * @param nextMobileScreen Name of the JSP Page to display the error on a wireless device.
   * @since 1.0
   */
  public ExceptionMapping(String className, String nextWebScreen,
                          String nextMobileScreen) {

    this.className        = className;

    this.nextWebScreen    = nextWebScreen;

    this.nextMobileScreen = nextMobileScreen;
  }

  /**
   * Method to get the Class Name
   *
   * @return Desired Class Name
   * @since 1.0
   */
  public String getClassName() {
    return className;
  }

  /**
   * Method to get the JSP Page Name to which displays errors in a browser
   *
   * @return Desired JSP Page Name
   * @since 1.0
   */
  public String getNextWebScreen() {
    return nextWebScreen;
  }

  /**
   * Method to get the JSP Page Name to which displays errors on wireless devices.
   *
   * @return Desired JSP Page Name
   * @since 1.0
   */
  public String getNextMobileScreen() {
    return nextMobileScreen;
  }

  /**
   * Method to set the Class Name
   *
   * @param className       Name of the Exception Class.
   * @since 1.0
   */
  public void setClassName(String className) {
    this.className = className;
  }

  /**
   * Method to set the JSP Page Name to which displays errors in a browser
   *
   * @param nextWebScreen   Name of the JSP Page to display the error in a browser.
   * @since 1.0
   */
  public void setNextWebScreen(String nextWebScreen) {
    this.nextWebScreen = nextWebScreen;
  }

  /**
   * Method to set the JSP Page Name to which displays errors on wireless devices.
   *
   * @param nextMobileScreen Name of the JSP Page to display the error on a wireless device.
   * @since 1.0
   */
  public void setNextMobileScreen(String nextMobileScreen) {
    this.nextMobileScreen = nextMobileScreen;
  }

  /**
   * Method to return String representation of this class. This method overrides
   * the toString() method in java.lang.Object
   *
   * @return String Representation of this class.
   * @since 1.0
   */
  public String toString() {
    return new StringBuffer().append(className)
                              .append(" ")
                              .append(nextWebScreen)
                              .append(" ")
                              .append(nextMobileScreen).toString();
  }
}





⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -