org.glassfish.web.admin.cli
Class CreateProtocol

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

@Service(name="create-protocol")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
@ExecuteOn(value={DAS,INSTANCE})
@TargetType(value={DAS,STANDALONE_INSTANCE,CLUSTER,CONFIG})
public class CreateProtocol
extends java.lang.Object
implements AdminCommand

Command to create protocol element within network-config Sample Usage : create-protocol [--securityenabled true|false] protocol_name domain.xml element example

Author:
Nandini Ektare

Constructor Summary
CreateProtocol()
           
 
Method Summary
static void create(com.sun.grizzly.config.dom.Protocols protocols, java.lang.String name, java.lang.Boolean securityEnabled)
           
 void execute(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 Detail

CreateProtocol

public CreateProtocol()
Method Detail

execute

public void execute(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 AdminCommand
Parameters:
context - information

create

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


Copyright © 2012 GlassFish Community. All Rights Reserved.