public ResponseBuilder initialize ( final Resource resource ) { if ( MISSING_RESOURCE . equals ( resource ) ) { throw new NotFoundException ( ) ; } else if ( DELETED_RESOURCE . equals ( resource ) ) { throw new ClientErrorException ( GONE ) ; } setResource ( resource ) ; return status ( NO_CONTENT ) ; }
Initialize the request handler .