Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
URL のリストにヒットし、URL が存在するかどうかを最初に知る必要がある Java プログラムを作成しています。これについてどうすればいいのかわからず、使用するJavaコードが見つかりません。
URL は次のようになります。
http: //ip:port/URI?Attribute=x&attribute2=y
これらは、有効な場合に XML を返す内部ネットワーク上の URL です。
誰かがいくつかのコードを提案できますか?
HttpURLConnection を使用して、エラー ステータスを確認することをお勧めします。
HttpURLConnection javadoc