You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
927 B

/*
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.xml.ws.http;
/** The <code>HTTPException</code> exception represents a
* XML/HTTP fault.
*
* <p>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
**/
public class HTTPException extends javax.xml.ws.ProtocolException {
private int statusCode;
/** Constructor for the HTTPException
* @param statusCode <code>int</code> for the HTTP status code
**/
public HTTPException(int statusCode) {
super();
this.statusCode = statusCode;
}
/** Gets the HTTP status code.
*
* @return HTTP status code
**/
public int getStatusCode() {
return statusCode;
}
}