Platform Explorer / Nuxeo Platform 5.8

Extension point requestHandlers

Documentation

In this extension point you will contribute the definition of your handler that implements the logic of redirection to your application. Interface to implement for this requestHandler is just for a given request do Nuxeo will redirect the user to the given application.

    <requestHandler disable="false" name="MobileWithCookieRequestHandler">
        <implementation>org.nuxeo.ecm.mobile.handler.MobileWithCookieRequestHandler</implementation>
        <properties>
            <property name="skippedURLPattern">(.*)/nxfile/(.*)|(.*)/nxbigfile/(.*)</property>
        </properties>
    </requestHandler>

And so you will have to implement the interface given by org.nuxeo.ecm.mobile.handler.RequestHandler. Means just to implement this following methods:

         public RequestHandler init(Map&lt;String, String&gt; properties);

         public boolean isRequestRedirectedToApplication(HttpServletRequest request);

         public boolean isRequestRedirectedToApplicationLoginForm(HttpServletRequest request);

Contribution Descriptors

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-web-mobile-dm-5.8.jar
    <extension point="requestHandlers" target="org.nuxeo.ecm.application.definition.service">
        <requestHandler disable="false" name="MobileWithCookieRequestHandler">
          <implementation>org.nuxeo.ecm.mobile.handler.MobileWithCookieRequestHandler</implementation>
          <properties>
            <property name="urlSkippedPatterns">(.*)/img/(.*)|(.*)/icons/(.*)|(.*)/nxfile/(.*)|(.*)/nxbigfile/(.*)|(.*)/restAPI/preview/(.*)</property>
          </properties>
        </requestHandler>
      </extension>