public class Endpoint extends Object implements Serializable
Constructor and Description |
---|
Endpoint()
Default constructor.
|
Endpoint(String url,
String userName,
String password,
boolean enabled)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object value) |
String |
getPassword()
Returns BASIC authentication password.
|
String |
getUrl()
Gets URL.
|
String |
getUserName()
Gets BASIC authentication username.
|
int |
hashCode() |
boolean |
isEnabled()
Returns whether or not endpoint is valid.
|
void |
setEnabled(boolean enabled)
Sets whether or not endpoint is valid.
|
void |
setPassword(String password)
Sets BASIC authentication password.
|
void |
setUrl(String url)
Sets URL.
|
void |
setUserName(String userName)
Sets BASIC authentication username.
|
String |
toString() |
public void setUrl(String url)
public String getUrl()
public void setUserName(String userName)
userName
- Username for BASIC authenticationpublic String getUserName()
public void setPassword(String password)
password
- Password for BASIC authorizationpublic String getPassword()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- Whether or not the endpoint is valid