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

📄 jwmasettings.java

📁 java windows mda and reveus
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
   *   * @return the mail transport protocol name as <tt>String</tt>.   */  public String getMailTransportProtocol() {    return m_Properties.getProperty("jwma.mailtransport.protocol");  }//getMailTransportProtocol  /**   * Sets the name of the mail transport protocol.   *   * @param protocol the name of the mail transport protocol   *		  as <tt>String</tt>.   */  public void setMailTransportProtocol(String protocol) {    m_Properties.setProperty("jwma.mailtransport.protocol", protocol);  }//setMailTransportProtocol  /**   * Returns a <tt>String</tt> representing the MTA's   * hostname.   *   * @return the MTA's hostname as <tt>String</tt>.   */  public String getMailTransportHost() {    return m_Properties.getProperty("jwma.mailtransport.host");  }//getMailTransportHost  /**   * Sets the host name of the MTA.   *   * @param host the hostname of the MTA as <tt>String</tt>.   */  public void setMailTransportHost(String host) {    m_Properties.setProperty("jwma.mailtransport.host", host);  }//setMailTransportHost  /**   * Returns an <tt>int</tt> representing the port   * the MTA is running on.   *   * @return the port number as <tt>int</tt>.   */  public int getMailTransportPort() {    return new Integer(        m_Properties.getProperty("jwma.mailtransport.port")    ).intValue();  }//getMailTransportPort  /**   * Sets the port the MTA is running on.   *   * @param the port number as <tt>int</tt>.   */  public void setMailTransportPort(int num) {    m_Properties.setProperty(        "jwma.mailtransport.port",        new Integer(num).toString()    );  }//setMailTransportPort  /**   * Tests if the connection to the MTA should be authenticated.   *   * @return true if authentication required, false otherwise.   */  public boolean isMailTransportAuthenticated() {    return (new Boolean(        m_Properties.getProperty("jwma.mailtransport.authenticated"))        .booleanValue());  }//isMailTransportAuthenticated  /**   * Sets the flag that controls if connections to the MTA   * should be authenticated.   *   * @param true if authentication required, false otherwise.   */  public void setMailTransportAuthenticated(boolean auth) {    m_Properties.setProperty(        "jwma.mailtransport.authenticated",        new Boolean(auth).toString()    );  }//setMailTransportAuthenticated  /**   * Returns an <tt>int</tt> representing the maximum   * size in kB's allowed for a message to be transported.   *   * @return maximum size of a message in kB's as <tt>int</tt>.   */  public int getMailTransportLimit() {    return new Integer(        m_Properties.getProperty("jwma.mailtransport.maxsize")    ).intValue();  }//getMailTransportLimit  /**   * Sets the transport size limitation.   *   * @param size the number of kB's a message can reach at maximum   *        as <tt>int</tt>.   */  public void setMailTransportLimit(int size) {    m_Properties.setProperty("jwma.mailtransport.maxsize", new Integer(size).toString());  }//setMailTransportLimit  /*** END Mail transport related **************************************/  /*** File related ****************************************************/  /**   * Returns a <tt>String</tt> representing filename of the   * mapping file used for XML serialization.   *   * @return the filename of the mapping file as <tt>String</tt>.   */  public String getMappingFilename() {    //fix for simplicity    return "jwma_mapping.xml";  }//getMappingFilename  /**   * Sets the the filename of the mapping file used for XML   * serialization.<p>   * There should not be any path appended to this filename,   * because the path is constructed from different settings.   *   * @param name the filename of the mapping file as <tt>String</tt>.   */  public void setMappingFilename(String name) {    //fix for simplicity    return;  }//setMappingFilename  /**   * Returns a <tt>String</tt> representing filename of the   * site's settings template file.   * <p>   * This file represents a serialized JwmaPreferences instance   * that is used for cloning new user's settings.   *   * @return the filename of the site's settings template file   *         as <tt>String</tt>.   */  public String getTemplateFilename() {    //fix for simplicity    return "site_template.xml";  }//getTemplateFilename  /**   * Sets the the filename of the site's settings template file.   * <p>   * This file represents a serialized JwmaPreferences instance   * that is used for cloning new user's settings.   * There should not be any path appended to this filename,   * because the path is constructed from different settings.   *   * @param name the filename of the site's settings template file   *        as <tt>String</tt>.   */  public void setTemplateFilename(String name) {    //fix for simplicity    return;  }//setTemplateFilename  /*** END File related ************************************************/  /*** Log related *****************************************************/  /**   * Returns a <tt>String</tt> representing filename of the   * log4j properties file.   *   * @return the filename of the log4j properties as <tt>String</tt>.   */  public String getLogPropertiesFilename() {    return m_Properties.getProperty("jwma.log4j.properties");  }//getSyslogFilename  /**   * Sets the the filename of the log4j properties file.   *   * @param name the filename of the log4j properties as <tt>String</tt>.   */  public void setLogPropertiesFilename(String name) {    m_Properties.setProperty("jwma.log4j.properties", name);  }//setLogPropertiesFilename  /*** END Log related *************************************************/  /*** Processing related **********************************************/  /**   * Returns a <tt>String</tt> representing filename of the   * text processing properties.   *   * @return the filename of the text processing properties   *         as <tt>String</tt>.   */  public String getTextProcFilename() {    return m_Properties.getProperty("jwma.processing.properties");  }//getTextProcFileName  /**   * Sets the filename of the text processing properties.   *   * @param the filename of the text processing properties   *         as <tt>String</tt>.   */  public void setTextProcFilename(String name) {    m_Properties.setProperty("jwma.processing.properties", name);  }//getTextProcFileName  /**   * Returns a <tt>String</tt> representing the name of the default   * message processing pipe.   *   * @return the name of the default message processing pipe as   *         <tt>String</tt>.   */  public String getDefaultMessageProcessingPipe() {    return m_Properties.getProperty("jwma.processing.defaultpipe");  }//getDefaultMessageProcessingPipe  /**   * Returns a <tt>String</tt> representing the name of the default   * message processing pipe.   *   * @return the name of the default message processing pipe as   *         <tt>String</tt>.   */  public void setDefaultMessageProcessingPipe(String name) {    m_Properties.setProperty("jwma.processing.defaultpipe", name);  }//setDefaultMessageProcessingPipe  /*** END Processing related ******************************************/  /*** Views related ***************************************************/  /**   * Returns a <tt>String</tt> representing the prefix   * for the views.   *   * @return the prefix for the views as <tt>String</tt>.   */  public String getViewPrefix() {    return m_Properties.getProperty("jwma.view.prefix");  }//getViewPrefix  /**   * Sets the prefix for the views.   *   * @param prefix the prefix for the views as <tt>String</tt>.   */  public void setViewPrefix(String prefix) {    m_Properties.setProperty("jwma.view.prefix", prefix);  }//setViewPrefix  /**   * Returns a <tt>String</tt> representing the error view   * filename/URL ending.   *   * @return the error view filename/URL ending as <tt>String</tt>.   */  public String getErrorView() {    return m_Properties.getProperty("jwma.view.error");  }//getErrorView  /**   * Sets the filename/URL ending for the error view.   *   * @param name the error view filename/URL ending as <tt>String</tt>.   */  public void setErrorView(String name) {    m_Properties.setProperty("jwma.view.error", name);  }//setErrorView  /**   * Returns a <tt>String</tt> representing the login view   * filename/URL ending.   *   * @return the login view filename/URL ending as <tt>String</tt>.   */  public String getLoginView() {    return m_Properties.getProperty("jwma.view.login");  }//getLoginView  /**   * Sets the filename/URL ending for the login view.   *   * @param name the login view filename/URL ending as <tt>String</tt>.   */  public void setLoginView(String name) {    m_Properties.setProperty("jwma.view.login", name);  }//setLoginView  /**   * Returns a <tt>String</tt> representing the logout view   * filename/URL ending.   *   * @return the logout view filename/URL ending as <tt>String</tt>.   */  public String getLogoutView() {    return m_Properties.getProperty("jwma.view.logout");  }//getLogoutView  /**   * Sets the filename/URL ending for the logout view.   *   * @param name the logout view filename/URL ending as <tt>String</tt>.   */  public void setLogoutView(String name) {    m_Properties.setProperty("jwma.view.logout", name);  }//setLogoutView  /**   * Returns a <tt>String</tt> representing the folder view   * filename/URL ending.   *   * @return the folder view filename/URL ending as <tt>String</tt>.   */  public String getFolderView() {    return m_Properties.getProperty("jwma.view.folder");  }//getFolderView  /**   * Sets the filename/URL ending for the folder view.   *   * @param name the folder view filename/URL ending as <tt>String</tt>.   */  public void setFolderView(String name) {    m_Properties.setProperty("jwma.view.folder", name);  }//setFolderView  /**   * Returns a <tt>String</tt> representing the mailbox view   * filename/URL ending.   *   * @return the mailbox view filename/URL ending as <tt>String</tt>.   */  public String getMailboxView() {    return m_Properties.getProperty("jwma.view.mailbox");  }//getMailboxView  /**   * Sets the filename/URL ending for the mailbox view.   *   * @param name the mailbox view filename/URL ending as <tt>String</tt>.   */  public void setMailboxView(String name) {    m_Properties.setProperty("jwma.view.mailbox", name);  }//setMailboxView  /**   * Returns a <tt>String</tt> representing the message view   * filename/URL ending.   *   * @return the message view filename/URL ending as <tt>String</tt>.   */  public String getMessageView() {    return m_Properties.getProperty("jwma.view.message");  }//getMessageView  /**   * Sets the filename/URL ending for the message view.   *   * @param name the message view filename/URL ending as <tt>String</tt>.   */  public void setMessageView(String name) {    m_Properties.setProperty("jwma.view.message", name);  }//setMessageView  /**   * Returns a <tt>String</tt> representing the compose view   * filename/URL ending.   *   * @return the compose view filename/URL ending as <tt>String</tt>.   */  public String getComposeView() {    return m_Properties.getProperty("jwma.view.compose");  }//getComposeView  /**   * Sets the filename/URL ending for the compose view.   *   * @param name the compose view filename/URL ending as <tt>String</tt>.   */  public void setComposeView(String name) {    m_Properties.setProperty("jwma.view.compose", name);  }//setComposeView  /**   * Returns a <tt>String</tt> representing the preferences view   * filename/URL ending.   *   * @return the preferences view filename/URL ending as <tt>String</tt>.   */  public String getPreferencesView() {    return m_Properties.getProperty("jwma.view.preferences");  }//getPreferencesView  /**   * Sets the filename/URL ending for the preferences view.

⌨️ 快捷键说明

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