Class: com.sybase.djc.rest.RestService (REST Service) | EAServer 6.3 Help |
---|
Description |
Defines a service accessible through a
REST
(Representational State Transfer) style interface. A service is a business
method defined on a CORBA stateless component or EJB stateless session bean,
which is exposed for access via HTTP GET and POST.
Clients access services using URLs of the form: http://my-host:8000/rest/public-protected/representation/service-namewhere:
Regardless of the requested response representation, request parameters can be passed in one of three ways.
It is recommend to use the Set Properties Task to define REST services, although for prototyping purposes a minimal administrative web interface is available at a URL such as the following (vary the host and port according to your server's listeners). http://my-host:8000/rest/admin Clients can obtain help for invoking protected services at a URL such as the following. http://my-host:8000/rest/protected/help Clients can obtain help for invoking public services at a URL such as the following. http://my-host:8000/rest/public/help |
---|---|
Configuration | See Set Properties Task. |
Properties | accessControl, allowCaching, cacheControl, componentMethod, namingStyle, parameterNames, requestElement, responseElement, resultName |
Files | Repository/Instance/com/sybase/djc/rest/RestService/*.properties |
Property: allowCaching (Allow Caching) | |
---|---|
Description | Allow clients to cache the response from a call to this service. |
Default Value | false |
Legal Values | false, true |
Property: cacheControl (Cache Control) | |
---|---|
Description | Contents for the HTTP Cache-Control header that will be sent to clients in the HTTP response. |
Only Used If | Property allowCaching has the value "true". |
Default Value | max-age="3600" |