asia.redact.bracket.properties.mgmt
Class ServerLocaleBuilder
java.lang.Object
asia.redact.bracket.properties.mgmt.ServerLocaleBuilder
- Direct Known Subclasses:
- HostnameServerLocaleBuilder
public abstract class ServerLocaleBuilder
- extends Object
Abstract class which may be useful as a base for builders to get your Server Locale. Trivial.
- Author:
- Dave
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerLocaleBuilder
public ServerLocaleBuilder()
findServerLocale
public abstract ServerLocale findServerLocale()
fromInet
public String fromInet()
- Helper method - get the hostname from the local machine by looking at the InetAddress.getLocalHost()
- Returns:
- the hostname
- Throws:
RuntimeException - if fails
fromSystemProperty
public String fromSystemProperty()
- Helper method, set the host name as a System property called "hostname" to use this
- Returns:
Copyright © 2011-2013 David R. Smith. All Rights Reserved.