iaik.xkms.transport
Class FaultResponse

Object
  extended by FaultResponse

public class FaultResponse
extends Object

Fault response message creators for different transport media.

This is a service module for server implementations.


Method Summary
static String createPlainHTTPResponse(Fault fault, XKMSContext xkmsContext)
          Creates an error message for the given fault, no special wrapping.
static String createResponse(Fault fault, String info, XKMSContext xkmsContext, TransportMethod transportationMethod)
          Creates an error message for the given fault, wrapped according to transportationMethod.
static String createSOAP11Response(Fault fault, String info, XKMSContext xkmsContext)
          Creates an error message for the given fault, wrapped in SOAP 1.1.
static String createSOAP12Response(Fault fault, String info, XKMSContext xkmsContext)
          Creates an error message for the given fault, wrapped in SOAP 1.2.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createResponse

public static String createResponse(Fault fault,
                                    String info,
                                    XKMSContext xkmsContext,
                                    TransportMethod transportationMethod)
Creates an error message for the given fault, wrapped according to transportationMethod.

Parameters:
fault - fault to create an error message for
info - additional (SOAP) information if necessary. e.g. name of unsupported message
Returns:
a complete error message

createSOAP11Response

public static String createSOAP11Response(Fault fault,
                                          String info,
                                          XKMSContext xkmsContext)
Creates an error message for the given fault, wrapped in SOAP 1.1.

Parameters:
fault - fault to create an error message for
info - additional information if necessary. e.g. name of unsupported message
Returns:
a complete error message

createSOAP12Response

public static String createSOAP12Response(Fault fault,
                                          String info,
                                          XKMSContext xkmsContext)
Creates an error message for the given fault, wrapped in SOAP 1.2.

Parameters:
fault - fault to create an error message for
info - additional information if necessary. e.g. name of unsupported message
Returns:
a complete error message

createPlainHTTPResponse

public static String createPlainHTTPResponse(Fault fault,
                                             XKMSContext xkmsContext)
Creates an error message for the given fault, no special wrapping.

Parameters:
fault - fault to create an error message for
Returns:
a complete error message