Class AdminResource

java.lang.Object
org.restlet.resource.Resource
com.jalios.jcms.rest.JcmsRestResource
com.jalios.jcms.rest.resources.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 Details

    • AdminResource

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

    • getItemXmlRepresentation

      protected String getItemXmlRepresentation(Object item)
      Overrides:
      getItemXmlRepresentation in class JcmsRestResource
    • allowPost

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

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