src/main/java/org/trellisldp/http/PartitionedLdpResource.java
/**
     * Perform an OPTIONS operation on an LDP Resource
     * @param req the request
     * @return the response
     */
Perform an OPTIONS operation on an LDP Resource
@param req the request
@return the response
Perform an OPTIONS operation on an LDP Resource @param req the request @return the response
@OPTIONS
    @Timed
    public Response options(@BeanParam final LdpRequest req) {
        final String baseUrl = partitions.get(req.getPartition());
        final IRI identifier = rdf.createIRI(TRELLIS_PREFIX + req.getPartition() + req.getPath());
        final OptionsHandler optionsHandler = new OptionsHandler(req, resourceService, baseUrl);
        if (nonNull(req.getVersion())) {
            return resourceService.get(identifier, req.getVersion().getInstant()).map(optionsHandler::ldpOptions)
                .orElseGet(() -> status(NOT_FOUND)).build();
        }
        return resourceService.get(identifier).map(optionsHandler::ldpOptions)
            .orElseGet(() -> status(NOT_FOUND)).build();
    }
@ OPTIONS @ Timed public Response options ( @ BeanParam final LdpRequest req ) { final String baseUrl = partitions . get ( req . getPartition ( ) ) ; final IRI identifier = rdf . createIRI ( TRELLIS_PREFIX + req . getPartition ( ) + req . getPath ( ) ) ; final OptionsHandler optionsHandler = new OptionsHandler ( req , resourceService , baseUrl ) ; if ( nonNull ( req . getVersion ( ) ) ) { return resourceService . get ( identifier , req . getVersion ( ) . getInstant ( ) ) . map ( optionsHandler :: ldpOptions ) . orElseGet ( ( ) -> status ( NOT_FOUND ) ) . build ( ) ; } return resourceService . get ( identifier ) . map ( optionsHandler :: ldpOptions ) . orElseGet ( ( ) -> status ( NOT_FOUND ) ) . build ( ) ; }
Perform an OPTIONS operation on an LDP Resource
 @param req the request
 @return the response
Perform an OPTIONS operation on an LDP Resource @param req the request @return the response