com.sun.identity.liberty.ws.dst.service
Class DSTRequestHandler

java.lang.Object
  extended by com.sun.identity.liberty.ws.dst.service.DSTRequestHandler
All Implemented Interfaces:
RequestHandler

public abstract class DSTRequestHandler
extends Object
implements RequestHandler

The class DSTRequestHandler is a handler for processing Query or Modify Requests for any generic data service that are built using Liberty SIS specifications. This class includes common processing rules defined by Liberty DST specification, it is an extension point for any Liberty DST based web services.


Constructor Summary
protected DSTRequestHandler()
          Default constructor
 
Method Summary
protected  String getResourceID(Object resourceIDType, String providerID, String serviceType)
          Gets the Resource ID given in the Query or Modify Request.
abstract  Object processDSTRequest(Object request, Message msg, Message response)
          Processes query/modify request.
 Message processRequest(Message msg)
          Processes the request for the given personal profile service request.
 

Constructor Detail

DSTRequestHandler

protected DSTRequestHandler()
Default constructor

Method Detail

processRequest

public Message processRequest(Message msg)
                       throws SOAPFaultException
Processes the request for the given personal profile service request.

Specified by:
processRequest in interface RequestHandler
Parameters:
msg - SOAP Request message
Returns:
Message SOAP Response Message.
Throws:
SOAPFaultException - if the service requires an interaction.
Exception - for any generic failure.

processDSTRequest

public abstract Object processDSTRequest(Object request,
                                         Message msg,
                                         Message response)
                                  throws SOAPFaultException,
                                         DSTException
Processes query/modify request.

Parameters:
request - query or modify object.
msg - Request Message.
response - response Message.
Returns:
Object processed response object.
Throws:
DSTException - for failure.
SOAPFaultException - for the interaction redirects

getResourceID

protected String getResourceID(Object resourceIDType,
                               String providerID,
                               String serviceType)
Gets the Resource ID given in the Query or Modify Request.

Parameters:
resourceIDType - JAXB ResourceIDType Object.
providerID - Provider ID.
serviceType - Service Type.
Returns:
String resource id.