Package org.alfresco.rest.framework.core
Class ResourceOperation
- java.lang.Object
-
- org.alfresco.rest.framework.core.ResourceOperation
-
public class ResourceOperation extends java.lang.Object
Operations that can typically take place on a Restful resource- Author:
- Gethin James
-
-
Field Summary
Fields Modifier and Type Field Description static int
UNSET_STATUS
-
Constructor Summary
Constructors Constructor Description ResourceOperation(org.springframework.http.HttpMethod httpMethod, java.lang.String title, java.lang.String description, java.util.List<ResourceParameter> parameters, int successStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
org.springframework.http.HttpMethod
getHttpMethod()
java.util.List<ResourceParameter>
getParameters()
int
getSuccessStatus()
java.lang.String
getTitle()
java.lang.String
toString()
-
-
-
Field Detail
-
UNSET_STATUS
public static final int UNSET_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResourceOperation
public ResourceOperation(org.springframework.http.HttpMethod httpMethod, java.lang.String title, java.lang.String description, java.util.List<ResourceParameter> parameters, int successStatus)
- Parameters:
httpMethod
- HttpMethodtitle
- Stringdescription
- StringsuccessStatus
- HTTP status
-
-
Method Detail
-
getHttpMethod
public org.springframework.http.HttpMethod getHttpMethod()
-
getTitle
public java.lang.String getTitle()
-
getDescription
public java.lang.String getDescription()
-
getParameters
public java.util.List<ResourceParameter> getParameters()
-
getSuccessStatus
public int getSuccessStatus()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-