public final class XKMSResponseFactory extends Object
Modifier and Type | Method and Description |
---|---|
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> |
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() |
public static ResultType createResponse(RequestAbstractType request)
request
- Request to generate response forpublic static <T extends ResultType> T createResponse(RequestAbstractType request, T response)
request
- Request to be used for responseresponse
- Response to be enrichedpublic static ResultType copyOpaqueClientData(RequestAbstractType request, ResultType response)
request
- Containing OpaqueClientDataresponse
- to be used for inserting OpaqueClientDatapublic static ResultType copyRequestId(RequestAbstractType request, ResultType response)
request
- Containing request IDresponse
- to be used for inserting request IDpublic static ResultType copyServiceName(RequestAbstractType request, ResultType response)
request
- containing service nameresponse
- to be used for inserting service namepublic static String generateUniqueID()
Apache CXF