try {
if (isGetObjectProfileRequest) {
logger.debug("Servicing getObjectProfile request " + "(PID="
+ PID + ", asOfDate=" + versDateTime + ")");
Context context =
ReadOnlyContext.getContext(HTTP_REQUEST.REST.uri,
request);
getObjectProfile(context,
PID,
asOfDateTime,
xml,
request,
response);
logger.debug("Finished servicing getObjectProfile request");
} else if (isGetDisseminationRequest) {
sDefPID = URIArray[6];
logger.debug("Servicing getDissemination request (PID=" + PID
+ ", sDefPID=" + sDefPID + ", methodName=" + methodName
+ ", asOfDate=" + versDateTime + ")");
Context context =
ReadOnlyContext.getContext(HTTP_REQUEST.REST.uri,
request);
getDissemination(context,
PID,
sDefPID,
methodName,
userParms,
asOfDateTime,
response,
request);
logger.debug("Finished servicing getDissemination request");
} else if (isGetDatastreamDisseminationRequest) {
logger.debug("Servicing getDatastreamDissemination request "
+ "(PID=" + PID + ", dsID=" + dsID + ", asOfDate="
+ versDateTime + ")");
Context context =
ReadOnlyContext.getContext(HTTP_REQUEST.REST.uri,
request);
getDatastreamDissemination(context,
PID,
dsID,