Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2010 MediaShelf <> This file is part of fedora-client. fedora-client is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. fedora-client is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with fedora-client. If not, see <>.
package com.yourmediashelf.fedora.client.request;
Builder for the Validate method.

Edwin Shin
public class Validate extends FedoraRequest<Validate> {
    private final String pid;


pid persistent identifier of the digital object
    public Validate(String pid) {
        this. = pid;


asOfDateTime yyyy-MM-dd or yyyy-MM-ddTHH:mm:ssZ
this builder
    public Validate asOfDateTime(String asOfDateTime) {
        return this;
    public ValidateResponse execute() throws FedoraClientException {
        return (ValidateResponsesuper.execute();
    public ValidateResponse execute(FedoraClient fedora)
            throws FedoraClientException {
        WebResource wr = resource(fedora);
        String path = String.format("objects/%s/validate");
        return new ValidateResponse(wr.path(path).queryParams(getQueryParams())
New to GrepCode? Check out our FAQ X