// プロキシの設定(ホストとポート)
System.setProperty("http.proxyHost", "proxy.example.com");
System.setProperty("http.proxyPort", "3128");

// 認証情報の設定
Authenticator.setDefault(new Authenticator() {
  @Override
  protected PasswordAuthentication getPasswordAuthentication() {
    return new PasswordAuthentication("myname", "password".toCharArray());
  }
});

Java#JavaSE


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS   sitemap
Last-modified: 2014-10-15 (水) 22:26:15 (3478d)
Short-URL: https://at-sushi.com:443/pukiwiki/index.php?cmd=s&k=368e0c33a6
ISBN10
ISBN13
9784061426061