Package org.glassfish.web.admin.cli
Class CreateProtocol
- java.lang.Object
-
- org.glassfish.web.admin.cli.CreateProtocol
-
- All Implemented Interfaces:
AdminCommand
@Service(name="create-protocol") @PerLookup @ExecuteOn({DAS,INSTANCE}) @TargetType({DAS,STANDALONE_INSTANCE,CLUSTER,CONFIG}) public class CreateProtocol extends 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
Constructors Constructor Description CreateProtocol()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
create(Protocols protocols, String name, 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
-
-
-
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 interfaceAdminCommand
- Parameters:
context
- information
-
create
public static void create(Protocols protocols, String name, Boolean securityEnabled) throws TransactionFailure
- Throws:
TransactionFailure
-
-