Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
applications:rest_extensions [2019/03/07 21:56]
admin
applications:rest_extensions [2019/03/08 09:20]
admin
Line 3: Line 3:
 ~~Title: REST extensions~~ ~~Title: REST extensions~~
  
-<​html>​  +=== Public services ​=== 
-<div class="​idxrow">​ +The [[jvx:​common:​util:​rest|REST API of JVx]] offers a great solution for generic services accessible via REST. But the standard ​access is protected by BASIC authentication and sometimes it's important ​to offer public services without authentication. This isn't possible with standard JVx authentication implementations. Our application framework enables you to do really cool things with JVx' REST API.
-  <div class="​idxcolumn2">​ +
-    <​h3>​General</​h3>​ +
-    <div class="​text"><​a href="​jvx_to_projx">​JVx standard to ProjX</​a></​div> ​   +
-  </​div>​  +
-</​div>​ +
-</​html>​+
  
 +To enable public REST services, first configure your REST zone to use the forwarding authentication mode. Simply add following to your Deployment desceriptor (web.xml):
 +
 +<code xml>
 +<​init-param>​
 +  <!-- Authentication type -->
 +  <​param-name>​authtype</​param-name>​
 +  <​param-value>​forward</​param-value>​
 +</​init-param>  ​
 +</​code>​
 +
 +The full definition:
 +
 +<file xml web.xml>
 +<!-- Restlet adapter -->  ​
 +<​servlet>  ​
 +  <​servlet-name>​RestletServlet</​servlet-name>  ​
 +  <​servlet-class>​org.restlet.ext.servlet.ServerServlet</​servlet-class>​
 +  ​
 +  <​init-param>​
 +    <!-- Application class name -->
 +    <​param-name>​org.restlet.application</​param-name>​
 +    <​param-value>​com.sibvisions.rad.server.http.rest.RESTAdapter</​param-value>​
 +  </​init-param>​
 +  ​
 +  <​init-param>​
 +    <!-- Authentication type -->
 +    <​param-name>​authtype</​param-name>​
 +    <​param-value>​forward</​param-value>​
 +  </​init-param> ​   ​
 +</​servlet>  ​
 +
 +<​servlet-mapping>  ​
 +  <​servlet-name>​RestletServlet</​servlet-name>  ​
 +  <​url-pattern>/​services/​rest/​*</​url-pattern>  ​
 +</​servlet-mapping> ​
 +</​file>​
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information