// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java
// public class DefaultStartOption implements StartOption {
//     private String name;
// 
//     public DefaultStartOption(String name) {
//         this.name = name;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public String validate() {
//         return null;
//     }
// 
//     public String validate(String value) {
//         return null;
//     }
// 
// }
// 
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java
// public abstract class JettyConsolePluginBase implements JettyConsolePlugin {
// 
//     private List<StartOption> startOptions = new ArrayList<StartOption>();
//     private String pluginUid;
// 
//     public JettyConsolePluginBase(String pluginUid) {
//         this.pluginUid = pluginUid;
//     }
// 
//     protected JettyConsolePluginBase(Class<? extends JettyConsolePluginBase> pluginClass) {
//         this(pluginClass.getName());
//     }
// 
//     protected void addStartOptions(StartOption... startOptions) {
//         this.startOptions.addAll(Arrays.asList(startOptions));
//     }
//     public void beforeStart(WebAppContext context) {
//         
//     }
// 
//     public void configureConsole(Configuration configuration) {
//         
//     }
// 
//     public void bootstrap() {
//         
//     }
// 
//     public void customizeConnector(ServerConnector connector) {
//         
//     }
// 
//     public void customizeServer(Server server) {
//         
//     }
// 
//     public void beforeStop(WebAppContext context) {
//         
//     }
// 
//     public List<StartOption> getStartOptions() {
//         return startOptions;
//     }
// }
// 
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/StartOption.java
// public interface StartOption {
// 
//     String getName();
// 
//     String validate(String arg);
// 
//     String validate();
// }


import org.eclipse.jetty.webapp.WebAppContext;
import org.simplericity.jettyconsole.api.DefaultStartOption;
import org.simplericity.jettyconsole.api.JettyConsolePluginBase;
import org.simplericity.jettyconsole.api.StartOption;
/*
 * Copyright 2015 Eirik Bjørsnøs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.simplericity.jettyconsole.plugins;


/**
 */
public class DirAllowedPlugin extends JettyConsolePluginBase {


    private boolean dirAllowed = false;

    private StartOption dirAllowedOption = new DefaultStartOption("dirAllowed") {
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/DefaultStartOption.java
// public class DefaultStartOption implements StartOption {
//     private String name;
// 
//     public DefaultStartOption(String name) {
//         this.name = name;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public String validate() {
//         return null;
//     }
// 
//     public String validate(String value) {
//         return null;
//     }
// 
// }
// 
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/JettyConsolePluginBase.java
// public abstract class JettyConsolePluginBase implements JettyConsolePlugin {
// 
//     private List<StartOption> startOptions = new ArrayList<StartOption>();
//     private String pluginUid;
// 
//     public JettyConsolePluginBase(String pluginUid) {
//         this.pluginUid = pluginUid;
//     }
// 
//     protected JettyConsolePluginBase(Class<? extends JettyConsolePluginBase> pluginClass) {
//         this(pluginClass.getName());
//     }
// 
//     protected void addStartOptions(StartOption... startOptions) {
//         this.startOptions.addAll(Arrays.asList(startOptions));
//     }
//     public void beforeStart(WebAppContext context) {
//         
//     }
// 
//     public void configureConsole(Configuration configuration) {
//         
//     }
// 
//     public void bootstrap() {
//         
//     }
// 
//     public void customizeConnector(ServerConnector connector) {
//         
//     }
// 
//     public void customizeServer(Server server) {
//         
//     }
// 
//     public void beforeStop(WebAppContext context) {
//         
//     }
// 
//     public List<StartOption> getStartOptions() {
//         return startOptions;
//     }
// }
// 
// Path: jetty-console-api/src/main/java/org/simplericity/jettyconsole/api/StartOption.java
// public interface StartOption {
// 
//     String getName();
// 
//     String validate(String arg);
// 
//     String validate();
// }


// Path: jetty-console-core/src/main/java/org/simplericity/jettyconsole/plugins/DirAllowedPlugin.java
import org.eclipse.jetty.webapp.WebAppContext;
import org.simplericity.jettyconsole.api.DefaultStartOption;
import org.simplericity.jettyconsole.api.JettyConsolePluginBase;
import org.simplericity.jettyconsole.api.StartOption;

/*
 * Copyright 2015 Eirik Bjørsnøs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.simplericity.jettyconsole.plugins;


/**
 */
public class DirAllowedPlugin extends JettyConsolePluginBase {


    private boolean dirAllowed = false;

    private StartOption dirAllowedOption = new DefaultStartOption("dirAllowed") {
        @Override