HTTPException (Java EE 5)

Java EE API


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
All Implemented Interfaces:
Serializable

public class HTTPException
extends ProtocolException

Extends: Throwable > Exception > RuntimeException > WebServiceException > ProtocolException

HTTPException 异常表示一个 XML/HTTP 故障。

由于在 XML/HTTP 消息传递中没有故障或异常的标准格式,因此只捕获 HTTP 状态代码。

英文文档:

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.

Since:
JAX-WS 2.0
See Also:
Serialized Form

Constructor Summary
 
Method Summary
 int
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public HTTPException(int statusCode)
HTTPException 的构造方法
statusCode HTTP 状态代码的 int
英文文档:

HTTPException

public HTTPException(int statusCode)
Constructor for the HTTPException

Parameters:
statusCode - int for the HTTP status code

Method Detail

public int getStatusCode()
获取 HTTP 状态代码。
return HTTP 状态代码
英文文档:

getStatusCode

public int getStatusCode()
Gets the HTTP status code.

Returns:
HTTP status code


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!