JavaTM Platform
Standard Ed. 6

java.net
클래스 HttpRetryException

java.lang.Object 
  상위를 확장 java.lang.Throwable 
      상위를 확장 java.lang.Exception 
          상위를 확장 java.io.IOException 
              상위를 확장 java.net.HttpRetryException
모든 구현된 인터페이스:
Serializable


public class HttpRetryException
extends IOException

HTTP 요구를 재시행할 필요가 있지만, 스트리밍 모드가 유효하게 되어 있기 위해서(때문에) 자동적으로 재시행할 수 없는 것을 나타내기 위해서(때문에), throw 됩니다.

도입된 버젼:
1.5
관련 항목:
직렬화 된 형식

생성자 의 개요
HttpRetryException (String  detail, int code)
          지정된 응답 코드와 예외 상세 메세지로부터, 새로운 HttpRetryException 을 구축합니다.
HttpRetryException (String  detail, int code, String  location)
          상세 메세지, 응답 코드, 및 Location 응답 헤더 필드의 내용에 근거해, 새로운 HttpRetryException 를 구축합니다.
 
메소드의 개요
 String getLocation ()
          리디렉션이 원인으로 에러가 발생했을 경우에, Location 헤더 필드의 값을 돌려줍니다.
 String getReason ()
          HTTP 요구를 재시행할 수 없었던 이유를 설명하는 캐릭터 라인을 돌려줍니다.
 int responseCode ()
          HTTP 응답 코드를 돌려줍니다.
 
클래스 java.lang. Throwable 로부터 상속된 메소드
fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

생성자 의 상세

HttpRetryException

public HttpRetryException(String  detail,
                          int code)
지정된 응답 코드와 예외 상세 메세지로부터, 새로운 HttpRetryException 를 구축합니다.

파라미터:
detail - 상세 메세지
code - 서버로부터의 HTTP 응답 코드

HttpRetryException

public HttpRetryException(String  detail,
                          int code,
                          String  location)
상세 메세지, 응답 코드, 및 Location 응답 헤더 필드의 내용에 근거해, 새로운 HttpRetryException 를 구축합니다.

파라미터:
detail - 상세 메세지
code - 서버로부터의 HTTP 응답 코드
location - 리다이렉트(redirect)처의 URL
메소드의 상세

responseCode

public int responseCode()
HTTP 응답 코드를 돌려줍니다.

반환값:
HTTP 응답 코드

getReason

public String  getReason()
HTTP 요구를 재시행할 수 없었던 이유를 설명하는 캐릭터 라인을 돌려줍니다.

반환값:
이유 캐릭터 라인

getLocation

public String  getLocation()
리디렉션이 원인으로 에러가 발생했을 경우에, Location 헤더 필드의 값을 돌려줍니다.

반환값:
장소의 캐릭터 라인

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.