Class CreateProtocol

java.lang.Object
org.glassfish.web.admin.cli.CreateProtocol
All Implemented Interfaces:
org.glassfish.api.admin.AdminCommand

@Service(name="create-protocol") @PerLookup @ExecuteOn({DAS,INSTANCE}) @TargetType({DAS,STANDALONE_INSTANCE,CLUSTER,CONFIG}) public class CreateProtocol extends Object implements org.glassfish.api.admin.AdminCommand
Command to create protocol element within network-config Sample Usage : create-protocol [--securityenabled true|false] protocol_name domain.xml element example invalid input: '<'file-cache enabled="false" />
Author:
Nandini Ektare
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    create(org.glassfish.grizzly.config.dom.Protocols protocols, String name, Boolean securityEnabled)
     
    void
    execute(org.glassfish.api.admin.AdminCommandContext context)
    Executes the command with the command parameters passed as Properties where the keys are the paramter names and the values the parameter values

    Methods inherited from class java.lang.Object

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

    • CreateProtocol

      public CreateProtocol()
  • Method Details

    • execute

      public void execute(org.glassfish.api.admin.AdminCommandContext context)
      Executes the command with the command parameters passed as Properties where the keys are the paramter names and the values the parameter values
      Specified by:
      execute in interface org.glassfish.api.admin.AdminCommand
      Parameters:
      context - information
    • create

      public static void create(org.glassfish.grizzly.config.dom.Protocols protocols, String name, Boolean securityEnabled) throws org.jvnet.hk2.config.TransactionFailure
      Throws:
      org.jvnet.hk2.config.TransactionFailure