Apache CXF API

org.apache.cxf.xkms.service
Class XKMSResponseFactory

java.lang.Object
  extended by org.apache.cxf.xkms.service.XKMSResponseFactory

public final class XKMSResponseFactory
extends Object


Method Summary
static ResultType copyOpaqueClientData(RequestAbstractType request, ResultType response)
          Copies OpaqueClientData from request to response as per XKMS specification http://www.w3.org/TR/xkms2/#XKMS_2_0_Section_1 [86]
static ResultType copyRequestId(RequestAbstractType request, ResultType response)
          Copies Request ID to response as per XKMS specification http://www.w3.org/TR/xkms2/#XKMS_2_0_Section_1
static ResultType copyServiceName(RequestAbstractType request, ResultType response)
          Copies service name from request to response.
static ResultType createResponse(RequestAbstractType request)
           
static
<T extends ResultType>
T
createResponse(RequestAbstractType request, T response)
          The following activities are performed: 1) generation and assigning of unique response ID 2) copying of request id 3) copying of service name 4) copying of opaqueClientData 5) setting major result to success
static String generateUniqueID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createResponse

public static ResultType createResponse(RequestAbstractType request)
Parameters:
request - Request to generate response for
Returns:
Returns response for provided request, with SUCCESS as default major result.

createResponse

public static <T extends ResultType> T createResponse(RequestAbstractType request,
                                                      T response)
The following activities are performed: 1) generation and assigning of unique response ID 2) copying of request id 3) copying of service name 4) copying of opaqueClientData 5) setting major result to success

Parameters:
request - Request to be used for response
response - Response to be enriched
Returns:
Returns enriched response

copyOpaqueClientData

public static ResultType copyOpaqueClientData(RequestAbstractType request,
                                              ResultType response)
Copies OpaqueClientData from request to response as per XKMS specification http://www.w3.org/TR/xkms2/#XKMS_2_0_Section_1 [86]

Parameters:
request - Containing OpaqueClientData
response - to be used for inserting OpaqueClientData
Returns:
Response unmodified, except for including OpaqueClientData from request

copyRequestId

public static ResultType copyRequestId(RequestAbstractType request,
                                       ResultType response)
Copies Request ID to response as per XKMS specification http://www.w3.org/TR/xkms2/#XKMS_2_0_Section_1

Parameters:
request - Containing request ID
response - to be used for inserting request ID
Returns:
Response unmodified, except for setting request ID

copyServiceName

public static ResultType copyServiceName(RequestAbstractType request,
                                         ResultType response)
Copies service name from request to response.

Parameters:
request - containing service name
response - to be used for inserting service name
Returns:
Response unmodified, except for setting service name

generateUniqueID

public static String generateUniqueID()
Returns:
Returns generated random UUID

Apache CXF API

Apache CXF