Package org.glassfish.web.admin.cli
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidexecute(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
-
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:
executein interfaceorg.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
-