public Object getAction ( ) throws ODataException { Option < String > actionNameOption = ODataUriUtil . getActionCallName ( odataUri ) ; if ( actionNameOption . isDefined ( ) ) { LOG . debug ( "The operation is supposed to be an action" ) ; String actionName = actionNameOption . get ( ) ; return parseAction ( actionName ) ; } Option < String > actionImportNameOption = ODataUriUtil . getActionImportCallName ( odataUri ) ; if ( actionImportNameOption . isDefined ( ) ) { LOG . debug ( "The operation is supposed to be an action import" ) ; String actionImportName = actionImportNameOption . get ( ) ; return parseActionImport ( actionImportName ) ; } throw new ODataUnmarshallingException ( "Not able to parse action / action import" ) ; }
Returns the instance of Action with all parameters provided by request .