public static enum ClientCrossCiteCitation.Context extends Enum<ClientCrossCiteCitation.Context>
Enum Constant and Description |
---|
DEV
Development context.
|
POST_DEV
Post development context.
|
PRE_PROD
Pre production context.
|
PROD
Production context.
|
Modifier and Type | Field and Description |
---|---|
private String |
crossCiteUrl
CrossCite URL.
|
private Level |
levelLog
Level log.
|
Modifier and Type | Method and Description |
---|---|
String |
getCrossCiteUrl()
Returns the service end point.
|
Level |
getLevelLog()
Returns the log level.
|
static void |
setCrossCiteUrl(ClientCrossCiteCitation.Context context,
String crossCiteUrl)
Sets the Cross Cite URL for a given context
|
private void |
setCrossCiteUrl(String crossCiteUrl)
Sets the Cross Cite URL for the context.
|
static void |
setLevelLog(ClientCrossCiteCitation.Context context,
Level levelLog)
Sets the level log for a given context
|
private void |
setLevelLog(Level levelLog)
Sets the level log for the context
|
static ClientCrossCiteCitation.Context |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientCrossCiteCitation.Context[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientCrossCiteCitation.Context DEV
ClientCrossCiteCitation.CROSS_CITE_MOCK_URL
end point with a log level sets to OFF.public static final ClientCrossCiteCitation.Context POST_DEV
ClientCrossCiteCitation.CROSS_CITE_URL
end point with a log level sets to ALL.public static final ClientCrossCiteCitation.Context PRE_PROD
ClientCrossCiteCitation.CROSS_CITE_URL
end point with a log level sets to FINE.public static final ClientCrossCiteCitation.Context PROD
ClientCrossCiteCitation.CROSS_CITE_URL
end
point with a log level sets to INFO.private Level levelLog
private String crossCiteUrl
public static ClientCrossCiteCitation.Context[] values()
for (ClientCrossCiteCitation.Context c : ClientCrossCiteCitation.Context.values()) System.out.println(c);
public static ClientCrossCiteCitation.Context 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 Level getLevelLog()
public String getCrossCiteUrl()
private void setLevelLog(Level levelLog)
levelLog
- level logprivate void setCrossCiteUrl(String crossCiteUrl)
crossCiteUrl
- Cross Cite URLpublic static void setLevelLog(ClientCrossCiteCitation.Context context, Level levelLog)
context
- the contextlevelLog
- the level logpublic static void setCrossCiteUrl(ClientCrossCiteCitation.Context context, String crossCiteUrl)
context
- the contextcrossCiteUrl
- Cross Cite URLCopyright © 2017–2020 CNES. All rights reserved.