Serializable
, Comparable<ConfluenceService.Protocol>
public static enum ConfluenceService.Protocol extends Enum<ConfluenceService.Protocol>
Modifier and Type | Method | Description |
---|---|---|
String |
addTo(String endpoint) |
add protocol path segment as suffix
|
boolean |
match(String endpoint) |
|
String |
path() |
|
String |
removeFrom(String endpoint) |
remove protocol path segment from given string
|
static ConfluenceService.Protocol |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ConfluenceService.Protocol[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfluenceService.Protocol XMLRPC
public static final ConfluenceService.Protocol REST
public static ConfluenceService.Protocol[] values()
for (ConfluenceService.Protocol c : ConfluenceService.Protocol.values()) System.out.println(c);
public static ConfluenceService.Protocol 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 path()
public String addTo(String endpoint)
endpoint
- public String removeFrom(String endpoint)
endpoint
- public boolean match(String endpoint)
Copyright © 2023. All rights reserved.