xsul.dispatcher.http_util
Class SendError
java.lang.Object
xsul.dispatcher.http_util.SendError
- public class SendError
- extends java.lang.Object
An util class to send http errors responses.
- Author:
- Alexandre di Costanzo
|
Method Summary |
static void |
send(HttpServerResponse resp,
java.lang.String statusCode,
java.lang.String reasonPhrase)
Send a message to resp. |
static void |
sendWSAFault(java.lang.String reason,
java.lang.Exception e,
SoapUtil soapUtil,
java.net.URI dest)
Send a WSAddressing fault message to dest. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SendError
public SendError()
send
public static void send(HttpServerResponse resp,
java.lang.String statusCode,
java.lang.String reasonPhrase)
- Send a message to
resp.
- Parameters:
resp - the response object.statusCode - the http status code for the response.reasonPhrase - the http reason phrase for the response.
sendWSAFault
public static void sendWSAFault(java.lang.String reason,
java.lang.Exception e,
SoapUtil soapUtil,
java.net.URI dest)
- Send a WSAddressing fault message to
dest.
- Parameters:
reason - the English language reason element.e - the Exception for the detail element.soapUtil - to use the good verison of SOAP.dest - the URI of the destination of the message.
IU Extreme! Lab (http://www.extreme.indiana.edu)