public final class Directive extends Object
Modifier and Type | Method and Description |
---|---|
static Directive |
directive(String name,
String value)
Return a
Directive based on the name and value, if value was quoted then this is also captured. |
boolean |
equals(Object obj) |
String |
getName()
Represents the directive name.
|
String |
getOriginalValue()
Represents the original directive value and in quotes if it was originally quoted.
|
String |
getValue()
Represents directive value, won't be quoted even if the original was.
|
int |
hashCode() |
boolean |
hasName()
Return true if the directive name is not null or empty.
|
boolean |
isQuoted()
Return
true if the original directive value was enclosed in quotes. |
String |
toString() |
public static Directive directive(String name, String value)
Directive
based on the name and value, if value was quoted then this is also captured.name
- the name of the directive.value
- the value of the directive.Directive
based on the name and value, if value was quoted then this is also captured.public String getName()
public boolean hasName()
public String getValue()
public String getOriginalValue()
public boolean isQuoted()
true
if the original directive value was enclosed in quotes.true
if the original directive value was enclosed in quotes.Copyright © 2010-2018, ForgeRock All Rights Reserved.