eglx.rest package

eglx.rest supports access of REST services; primarily third-party REST services rather than EGL REST-RPC services.

Table 1. Types
Record EglService type Annotation
{ 
   targets = [ ElementKind.functionMbr], 
   validationProxy = 
      "org.eclipse.edt.compiler.binding.
       annotationType.EglServiceAnnotationTypeBinding"
}
   serviceName string?;

   requestCharset string = "UTF-8";

   //default based on encoding
   requestContentType string?;

   responseCharset string?;

   //default based on encoding
   responseContentType string?;
end
Record Rest type Annotation
{
   targets = [ ElementKind.functionMbr], 
   validationProxy = "org.eclipse.edt.compiler.binding.
      annotationType.RestAnnotationTypeBinding"
}
   method HttpMethod?;
   uriTemplate string?;
   requestFormat eglx.services.Encoding?;
   requestCharset string = "UTF-8";

   //default based on encoding
   requestContentType string?;

   responseFormat eglx.services.Encoding?;
   responseCharset string?;

   //default based on encoding
   responseContentType string?;
end

For details, see REST annotation.

Enumeration ServiceType
   TrueRest=1, EglRpc=2, EglDedicated=3
end
Table 2. Compatibility
Target Issue
Java At this writing, service access is not supported.
JavaScript No issues.