Example #1
0
 @Override
 protected void doHead(HttpAction action) {
   action.beginRead();
   setCommonHeaders(action.response);
   try {
     Target target = determineTarget(action);
     if (action.log.isDebugEnabled()) action.log.debug("HEAD->" + target);
     if (!target.exists()) {
       ServletOps.successNotFound(action);
       return;
     }
     MediaType mediaType = ActionLib.contentNegotationRDF(action);
     ServletOps.success(action);
   } finally {
     action.endRead();
   }
 }