01: /*
02: * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
03: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04: */
05:
06: package javax.xml.ws.http;
07:
08: /** The <code>HTTPException</code> exception represents a
09: * XML/HTTP fault.
10: *
11: * <p>Since there is no standard format for faults or exceptions
12: * in XML/HTTP messaging, only the HTTP status code is captured.
13: *
14: * @since JAX-WS 2.0
15: **/
16: public class HTTPException extends javax.xml.ws.ProtocolException {
17:
18: private int statusCode;
19:
20: /** Constructor for the HTTPException
21: * @param statusCode <code>int</code> for the HTTP status code
22: **/
23: public HTTPException(int statusCode) {
24: super ();
25: this .statusCode = statusCode;
26: }
27:
28: /** Gets the HTTP status code.
29: *
30: * @return HTTP status code
31: **/
32: public int getStatusCode() {
33: return statusCode;
34: }
35: }
|