org.fcrepo.server.rest
Class MethodResource

java.lang.Object
  extended by org.fcrepo.server.rest.BaseRestResource
      extended by org.fcrepo.server.rest.MethodResource

@Component
public class MethodResource
extends BaseRestResource

A rest controller to handle listing and invoking all Service Definition methods in a digital object.

Version:
$Id$
Author:
Chris Wilper

Field Summary
 
Fields inherited from class org.fcrepo.server.rest.BaseRestResource
APP_ZIP, FORM, HTML, m_access, m_datastreamFilenameHelper, m_headers, m_hostname, m_management, m_mapper, m_server, m_servletRequest, m_uriInfo, TEXT_HTML, TEXT_XML, VALID_PID_PART, XML, ZIP
 
Constructor Summary
MethodResource(Server server)
           
 
Method Summary
 javax.ws.rs.core.Response getAllObjectMethods(String pid, String dTime, String format, boolean flash)
          Lists all Service Definitions methods that can be invoked on a digital object.
 javax.ws.rs.core.Response getObjectMethodsForSDef(String pid, String sDef, String dTime, String format, boolean flash)
          Lists all Service Definitions methods that can be invoked on a digital object, for the supplied Service Definition.
 javax.ws.rs.core.Response invokeSDefMethodUsingGET(String pid, String sDef, String method, String dTime, boolean flash)
          Invokes a Service Definition method on an object, using GET.
 
Methods inherited from class org.fcrepo.server.rest.BaseRestResource
buildResponse, getContext, getSerializer, handleException, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodResource

public MethodResource(Server server)
Method Detail

getAllObjectMethods

public javax.ws.rs.core.Response getAllObjectMethods(String pid,
                                                     String dTime,
                                                     String format,
                                                     boolean flash)
Lists all Service Definitions methods that can be invoked on a digital object. GET /objects/{pid}/methods ? format asOfDateTime


getObjectMethodsForSDef

public javax.ws.rs.core.Response getObjectMethodsForSDef(String pid,
                                                         String sDef,
                                                         String dTime,
                                                         String format,
                                                         boolean flash)
Lists all Service Definitions methods that can be invoked on a digital object, for the supplied Service Definition. GET /objects/{pid}/methods/{sDef} ? format asOfDateTime


invokeSDefMethodUsingGET

public javax.ws.rs.core.Response invokeSDefMethodUsingGET(String pid,
                                                          String sDef,
                                                          String method,
                                                          String dTime,
                                                          boolean flash)
Invokes a Service Definition method on an object, using GET.



Copyright © 2012 DuraSpace. All Rights Reserved.