Class AdminResource

  • All Implemented Interfaces:
    MashupConstants, RestConstants

    public class AdminResource
    extends JcmsRestResource
    Implementation of a JcmsResource, used with GET method to return a represention of the channel through REST (actually, the result of statusXml.jsp). Action are possible with POST method : - disableDataWrite : to disable data write; - enableDataWrite : to enable data write.
    Since:
    JCMS-6.0
    Author:
    dissert
    • Constructor Detail

      • AdminResource

        public AdminResource​(org.restlet.Context context,
                             org.restlet.data.Request request,
                             org.restlet.data.Response response)
    • Method Detail

      • allowPost

        public boolean allowPost()
        Overrides:
        allowPost in class org.restlet.resource.Resource
      • doPost

        public void doPost​(java.lang.String action,
                           org.restlet.data.Form requestEntityForm)
        Handle POST requests: stopWrite/startWrite.
        Overrides:
        doPost in class JcmsRestResource