org.fcrepo.server.rest
Class MethodResource
java.lang.Object
org.fcrepo.server.rest.BaseRestResource
org.fcrepo.server.rest.MethodResource
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
| Fields inherited from class org.fcrepo.server.rest.BaseRestResource |
apiAService, apiMService, datastreamFilenameHelper, fedoraServer, fedoraServerHost, FORM, headers, HTML, mapper, servletRequest, TEXT_HTML, TEXT_XML, XML, ZIP |
|
Method Summary |
javax.ws.rs.core.Response |
getAllObjectMethods(String pid,
String dTime,
String format)
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)
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)
Invokes a Service Definition method on an object, using GET. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodResource
public MethodResource()
getAllObjectMethods
public javax.ws.rs.core.Response getAllObjectMethods(String pid,
String dTime,
String format)
- 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)
- 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)
- Invokes a Service Definition method on an object, using GET.
Copyright © 2011 DuraSpace. All Rights Reserved.