calendar.add(Calendar.HOUR, Integer.parseInt(header.getValue()));
resource.header("Expires", HTTPCacheContext.RFC822DateFormat.format( calendar.getTime() ));
} else {
//default behaviour to pass the header value to HTTP response
resource.header(header.getName(), header.getValue());
}
}
Object result = resource.invoke(httpMethod, responseType, entity);
msg.setBody(result);