@ OPTIONS @ Timed public void options ( @ Suspended final AsyncResponse response , @ Context final Request request , @ Context final UriInfo uriInfo , @ Context final HttpHeaders headers ) { final TrellisRequest req = new TrellisRequest ( request , uriInfo , headers ) ; final String urlBase = getBaseUrl ( req ) ; final IRI identifier = rdf . createIRI ( TRELLIS_DATA_PREFIX + req . getPath ( ) ) ; final OptionsHandler optionsHandler = new OptionsHandler ( req , trellis , req . getVersion ( ) != null , urlBase ) ; fetchTrellisResource ( identifier , req . getVersion ( ) ) . thenApply ( optionsHandler :: initialize ) . thenApply ( optionsHandler :: ldpOptions ) . thenApply ( ResponseBuilder :: build ) . exceptionally ( this :: handleException ) . thenApply ( response :: resume ) ; }
Perform an OPTIONS operation on an LDP Resource .