HTTPException (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.ws.http Class HTTPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.xml.ws.WebServiceException
                  extended by javax.xml.ws.ProtocolException
                      extended by javax.xml.ws.http.HTTPException
所有已实现的接口:
Serializable

public class HTTPException
extends ProtocolException

The HTTPException exception represents a XML/HTTP fault.

Since there is no standard format for faults or exceptions in XML/HTTP messaging, only the HTTP status code is captured.

从以下版本开始:
JAX-WS 2.0
另请参见:
Serialized Form

构造器摘要
HTTPException(int statusCode)
          Constructor for the HTTPException
 
方法摘要
 int getStatusCode()
          Gets the HTTP status code.
 
类方法继承 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
 

构造器详细信息

HTTPException

public HTTPException(int statusCode)
Constructor for the HTTPException

参数:
statusCode - int for the HTTP status code

方法详细信息

getStatusCode

public int getStatusCode()
Gets the HTTP status code.

返回:
HTTP status code

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.