org.peaseplate.internal.locator
Class URLBasedMessagesLocator

java.lang.Object
  extended by org.peaseplate.locator.AbstractLocator
      extended by org.peaseplate.locator.AbstractURLBasedLocator
          extended by org.peaseplate.internal.locator.URLBasedMessagesLocator
All Implemented Interfaces:
java.io.Serializable, Locator, MessagesLocator

public class URLBasedMessagesLocator
extends AbstractURLBasedLocator
implements MessagesLocator

A messages locator that is based on an URL

Author:
Manfred HANTSCHEL
See Also:
Serialized Form

Constructor Summary
URLBasedMessagesLocator(java.net.URL url, java.lang.String name, java.util.Locale locale, java.lang.String encoding)
           
 
Method Summary
 Messages load()
          Loads the messages an returns a messages object containing the messages.
 
Methods inherited from class org.peaseplate.locator.AbstractURLBasedLocator
getUrl, isOutdated, toString, updateMetadata
 
Methods inherited from class org.peaseplate.locator.AbstractLocator
getKey, getRawSize, getTimestamp, setRawSize, setTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.peaseplate.locator.Locator
getKey, getRawSize, getTimestamp, isOutdated, setRawSize, setTimestamp, toString
 

Constructor Detail

URLBasedMessagesLocator

public URLBasedMessagesLocator(java.net.URL url,
                               java.lang.String name,
                               java.util.Locale locale,
                               java.lang.String encoding)
Method Detail

load

public Messages load()
              throws TemplateLocatorException
Description copied from interface: MessagesLocator
Loads the messages an returns a messages object containing the messages. Don't forget to update the timestamp and the rawSize properties when loading the data.

Specified by:
load in interface MessagesLocator
Returns:
a messages object
Throws:
TemplateLocatorException - on occasion
See Also:
MessagesLocator.load()


Copyright © 2008. All Rights Reserved.