public enum Action extends Enum<Action>
| Modifier and Type | Field and Description | 
|---|---|
static String | 
WEBSERVICES_DEFAULT_HOSTNAME  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
fetchEndpoint()
Return endpoint URL 
 | 
static Action | 
findByName(String name)
Return Action name that matches the name. 
 | 
String | 
getAction()
Get the action name for the enum 
 | 
String | 
getEndpoint()
Get endpoint URL for the action 
 | 
static String | 
getHostName()
Use swidHost environment variable value, if provided 
 | 
String | 
getMethod()  | 
void | 
setAction(String action)
Set the action name 
 | 
void | 
setEndpoint(String endpoint)
Set endpoint URL for the action 
 | 
void | 
setMethod(String method)
Set method 
 | 
static Action | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static Action[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final Action insert
public static final Action update
public static final String WEBSERVICES_DEFAULT_HOSTNAME
public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getAction()
public void setAction(String action)
action - the action namepublic static Action findByName(String name)
name - the action namepublic String getMethod()
public void setMethod(String method)
method - the http method allowed for the actionpublic String getEndpoint()
public void setEndpoint(String endpoint)
endpoint - the endpoint URL for the actionpublic String fetchEndpoint()
public static String getHostName()
Copyright © 2020 National Institute of Standards and Technology. All rights reserved.