Package railo.runtime.exp

Examples of railo.runtime.exp.SecurityException


     */
    public void updateClientTimeout(TimeSpan span) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("scope");
        if(span!=null)scope.setAttribute("clienttimeout",span.getDay()+","+span.getHour()+","+span.getMinute()+","+span.getSecond());
        else scope.removeAttribute("clienttimeout");
       
View Full Code Here


   

    public void updateCFMLWriterType(String writerType) throws SecurityException, ApplicationException {
      checkWriteAccess();
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("setting");
        writerType=writerType.trim();
       
        // remove
View Full Code Here

   
    public void updateSuppressContent(Boolean value) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("setting");
        scope.setAttribute("suppress-content",Caster.toString(value,""));
    }
View Full Code Here

   
    public void updateShowVersion(Boolean value) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("setting");
        scope.setAttribute("show-version",Caster.toString(value,""));
    }
View Full Code Here

   
    public void updateAllowCompression(Boolean value) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("setting");
        scope.setAttribute("allow-compression",Caster.toString(value,""));
    }
View Full Code Here

   
    public void updateContentLength(Boolean value) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("setting");
        scope.setAttribute("content-length",Caster.toString(value,""));
    }
View Full Code Here

  public void updateBufferOutput(Boolean value) throws SecurityException {
    checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("setting");
        scope.setAttribute("buffer-output",Caster.toString(value,""));
  }
View Full Code Here

     */
    public void updateApplicationTimeout(TimeSpan span) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("scope");
        if(span!=null)scope.setAttribute("applicationtimeout",span.getDay()+","+span.getHour()+","+span.getMinute()+","+span.getSecond());
        else scope.removeAttribute("applicationtimeout");
    }
View Full Code Here

    public void updateApplicationListener(String type,String mode) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update listener type");
       
        Element scope=_getRootElement("application");
        scope.setAttribute("listener-type",type.toLowerCase().trim());
        scope.setAttribute("listener-mode",mode.toLowerCase().trim());
    }
View Full Code Here

   
    public void updateProxy(boolean enabled,String server, int port, String username, String password) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update listener type");
       
        Element proxy=_getRootElement("proxy");
        proxy.setAttribute("enabled",Caster.toString(enabled));
        if(!StringUtil.isEmpty(server))    proxy.setAttribute("server",server);
        if(port>0)              proxy.setAttribute("port",Caster.toString(port));
View Full Code Here

TOP

Related Classes of railo.runtime.exp.SecurityException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.