Top Description Fields Constructors Methods
javax.xml.ws.http

public Class HTTPException

extends ProtocolException
Class Inheritance

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
1.6, JAX-WS 2.0

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
public
HTTPException(int
int for the HTTP status code
statusCode
)

Constructor for the HTTPException

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

HTTP status code
getStatusCode
()

Gets the HTTP status code.

Field Detail

statusCodeback to summary
private int statusCode

Constructor Detail

HTTPExceptionback to summary
public HTTPException(int statusCode)

Constructor for the HTTPException

Parameters
statusCode:int

int for the HTTP status code

Method Detail

getStatusCodeback to summary
public int getStatusCode()

Gets the HTTP status code.

Returns:int

HTTP status code