Example #1
0
 @Override
 public MethodOutcome invokeClient(
     String theResponseMimeType,
     Reader theResponseReader,
     int theResponseStatusCode,
     Map<String, List<String>> theHeaders)
     throws IOException, BaseServerResponseException {
   MethodOutcome response =
       MethodUtil.process2xxResponse(
           myContext,
           myResourceName,
           theResponseStatusCode,
           theResponseMimeType,
           theResponseReader,
           theHeaders);
   if (theResponseStatusCode == Constants.STATUS_HTTP_201_CREATED) {
     response.setCreated(true);
   }
   return response;
 }