Class UriResourceActionImpl
java.lang.Object
org.apache.olingo.server.core.uri.UriResourceImpl
org.apache.olingo.server.core.uri.UriResourceActionImpl
- All Implemented Interfaces:
UriResource,UriResourceAction,UriResourcePartTyped
Implementation of the
UriResourceAction interface. This class does not extend
UriResourceTypedImpl since that would allow type
filters and subsequent path segments.-
Constructor Summary
ConstructorsConstructorDescriptionUriResourceActionImpl(EdmAction action) UriResourceActionImpl(EdmActionImport actionImport) -
Method Summary
Modifier and TypeMethodDescriptionIf the resource path specifies an action import this method will deliver the unbound action for the action import.Convenience method which returns theEdmActionImportwhich was used in the resource path to define theEdmAction.In case of an EntitySet this method will return the EntitySet name.getSegmentValue(boolean includeFilters) getType()booleantoString(boolean includeFilters) Methods inherited from class org.apache.olingo.server.core.uri.UriResourceImpl
getKind, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.olingo.server.api.uri.UriResource
getKind, toString
-
Constructor Details
-
UriResourceActionImpl
-
UriResourceActionImpl
-
-
Method Details
-
getAction
Description copied from interface:UriResourceActionIf the resource path specifies an action import this method will deliver the unbound action for the action import.- Specified by:
getActionin interfaceUriResourceAction- Returns:
- Action used in the resource path or action import
-
getActionImport
Description copied from interface:UriResourceActionConvenience method which returns theEdmActionImportwhich was used in the resource path to define theEdmAction.- Specified by:
getActionImportin interfaceUriResourceAction- Returns:
- Action Import used in the resource path
-
isCollection
public boolean isCollection()- Specified by:
isCollectionin interfaceUriResourcePartTyped- Returns:
- True if the resource part is a collection, otherwise false
-
getType
- Specified by:
getTypein interfaceUriResourcePartTyped- Returns:
- Type of the resource part
-
getSegmentValue
- Specified by:
getSegmentValuein interfaceUriResourcePartTyped- Returns:
- String representation of the type
-
getSegmentValue
Description copied from interface:UriResourceIn case of an EntitySet this method will return the EntitySet name. In Case of $ref this method will return '$ref" as a String.- Specified by:
getSegmentValuein interfaceUriResource- Returns:
- the value of this URI Resource Segment
-
toString
- Specified by:
toStringin interfaceUriResourcePartTyped- Returns:
- String representation of the type
-