Class DenyWcmDisabled


  • @ProviderType
    @Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class)
    public class DenyWcmDisabled
    extends java.lang.Object
    Set HTTP error code header if WCM mode is disabled. The status code can be changed by request attribute errorCode (defaults to HTTP 403 - access forbidden).
    • Constructor Summary

      Constructors 
      Constructor Description
      DenyWcmDisabled()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void activate()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DenyWcmDisabled

        public DenyWcmDisabled()
    • Method Detail

      • activate

        @PostConstruct
        protected void activate()
                         throws java.io.IOException
        Throws:
        java.io.IOException