httpoptions.java

来自「JavaExplorer是一个独立于平台的浏览器」· Java 代码 · 共 108 行

JAVA
108
字号
/*
 * Created on 12 nov. 03
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package javaexplorer.util.options;

import java.io.Serializable;
import java.net.Authenticator;
import java.net.PasswordAuthentication;

import javaexplorer.util.ExplorerUtil;

import objectxml.XMLContent;
import objectxml.Xmlizable;

/**
 * @author veeb7280
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class HttpOptions implements Serializable, Xmlizable {
  
  private String proxyHost = null;
  private String nonProxyHost = null;
  private int proxyPort = 80;
  private boolean useProxy = false;
  
  private String user = null;
  private String password = null;
  
  private static HttpOptions _options = new HttpOptions();
  

  public HttpOptions(){
  }
  
  public String getPassword() {
    return password;
  }

  /**
   * @return
   */
  public String getProxyHost() {
    return proxyHost;
  }

  /**
   * @return
   */
  public int getProxyPort() {
    return proxyPort;
  }

  /**
   * @return
   */
  public String getUser() {
    return user;
  }

  /**
   * @param string
   */
  public void setPassword(String string) {
    password = string;
  }

  /**
   * @param string
   */
  public void setProxyHost(String string) {
    proxyHost = string;
  }

  /**
   * @param i
   */
  public void setProxyPort(int i) {
    proxyPort = i;
  }

  /**
   * @param string
   */
  public void setUser(String string) {
    user = string;
  }

  /**
   * @return
   */
  public boolean isUseProxy() {
    return useProxy;
  }

  /**
   * @param b
   */
  public void setUseProxy(boolean b) {
    useProxy = b;
  }
  
  public void applyOptions(){
    //Mise 

⌨️ 快捷键说明

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