Package org.apache.commons.text.lookup
Class LocalHostStringLookup
- java.lang.Object
-
- org.apache.commons.text.lookup.AbstractStringLookup
-
- org.apache.commons.text.lookup.LocalHostStringLookup
-
- All Implemented Interfaces:
StringLookup
final class LocalHostStringLookup extends AbstractStringLookup
Looks up keys related to the local host: host name, canonical host name, host address.The lookup keys are:
- name: for the local host name, for example
EXAMPLE. - canonical-name: for the local canonical host name, for example
EXAMPLE.apache.org. - address: for the local host address, for example
192.168.56.1.
- Since:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static LocalHostStringLookupINSTANCEDefines the singleton for this class.-
Fields inherited from class org.apache.commons.text.lookup.AbstractStringLookup
SPLIT_CH, SPLIT_STR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringlookup(String key)Looks up the value of a local host key.-
Methods inherited from class org.apache.commons.text.lookup.AbstractStringLookup
substringAfter, substringAfter, substringAfterLast, toLookupKey, toLookupKey
-
-
-
-
Field Detail
-
INSTANCE
static final LocalHostStringLookup INSTANCE
Defines the singleton for this class.
-
-