public class

FunctionResource

extends BaseResource
java.lang.Object
   ↳ org.odata4j.producer.resources.BaseResource
     ↳ org.odata4j.producer.resources.FunctionResource

Class Overview

Handles function calls.

Unfortunately the OData URI scheme makes it impossible to differentiate a function call "resource" from an EntitySet. So, we hack: EntitiesRequestResource delegates to this class if it determines that a function is being referenced.

    TODO:
  • function parameter facets (required, value ranges, etc). For now, all validation is up to the function handler in the producer.
  • non-simple function parameter types
  • make sure this works for GET and POST

Summary

Public Constructors
FunctionResource()
Public Methods
static Response callFunction(HttpHeaders httpHeaders, UriInfo uriInfo, ODataProducer producer, String functionName, String format, String callback, String skipToken)
Handles function call resource access by gathering function call info from the request and delegating to the producer.
[Expand]
Inherited Methods
From class org.odata4j.producer.resources.BaseResource
From class java.lang.Object

Public Constructors

public FunctionResource ()

Public Methods

public static Response callFunction (HttpHeaders httpHeaders, UriInfo uriInfo, ODataProducer producer, String functionName, String format, String callback, String skipToken)

Handles function call resource access by gathering function call info from the request and delegating to the producer.

Parameters
httpHeaders
uriInfo
producer
functionName
format
callback
skipToken
Throws
Exception