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

public class UriResourceActionImpl extends UriResourceImpl implements UriResourceAction
Implementation of the UriResourceAction interface. This class does not extend UriResourceTypedImpl since that would allow type filters and subsequent path segments.
  • Constructor Details

    • UriResourceActionImpl

      public UriResourceActionImpl(EdmActionImport actionImport)
    • UriResourceActionImpl

      public UriResourceActionImpl(EdmAction action)
  • Method Details

    • getAction

      public EdmAction getAction()
      Description copied from interface: UriResourceAction
      If the resource path specifies an action import this method will deliver the unbound action for the action import.
      Specified by:
      getAction in interface UriResourceAction
      Returns:
      Action used in the resource path or action import
    • getActionImport

      public EdmActionImport getActionImport()
      Description copied from interface: UriResourceAction
      Convenience method which returns the EdmActionImport which was used in the resource path to define the EdmAction.
      Specified by:
      getActionImport in interface UriResourceAction
      Returns:
      Action Import used in the resource path
    • isCollection

      public boolean isCollection()
      Specified by:
      isCollection in interface UriResourcePartTyped
      Returns:
      True if the resource part is a collection, otherwise false
    • getType

      public EdmType getType()
      Specified by:
      getType in interface UriResourcePartTyped
      Returns:
      Type of the resource part
    • getSegmentValue

      public String getSegmentValue(boolean includeFilters)
      Specified by:
      getSegmentValue in interface UriResourcePartTyped
      Returns:
      String representation of the type
    • getSegmentValue

      public String getSegmentValue()
      Description copied from interface: UriResource
      In 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:
      getSegmentValue in interface UriResource
      Returns:
      the value of this URI Resource Segment
    • toString

      public String toString(boolean includeFilters)
      Specified by:
      toString in interface UriResourcePartTyped
      Returns:
      String representation of the type