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 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
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
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
| |