org.onebusaway.presentation.impl.resources
Class ResourceServiceImpl

java.lang.Object
  extended by org.onebusaway.presentation.impl.resources.ResourceServiceImpl
All Implemented Interfaces:
ResourceService

@Component
public class ResourceServiceImpl
extends Object
implements ResourceService


Field Summary
static String DEBUG_PROPERTY
           
 
Constructor Summary
ResourceServiceImpl()
           
 
Method Summary
 String getExternalUrlForResource(String resourcePath, Locale locale)
          ResourceService Interface
 String getExternalUrlForResources(List<String> resourcePaths, Locale locale)
           
 String getExternalUrlForResources(String resourceId, List<String> resourcePaths, Locale locale)
           
 Resource getLocalResourceForExternalId(String externalId, Locale locale)
           
 void setPattern(String pattern)
           
 void setPrefix(String prefix)
           
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_PROPERTY

public static final String DEBUG_PROPERTY
Constructor Detail

ResourceServiceImpl

public ResourceServiceImpl()
Method Detail

setPrefix

public void setPrefix(String prefix)

setPattern

public void setPattern(String pattern)

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)

setup

@PostConstruct
public void setup()

getExternalUrlForResource

public String getExternalUrlForResource(String resourcePath,
                                        Locale locale)
ResourceService Interface

Specified by:
getExternalUrlForResource in interface ResourceService

getExternalUrlForResources

public String getExternalUrlForResources(List<String> resourcePaths,
                                         Locale locale)
Specified by:
getExternalUrlForResources in interface ResourceService

getExternalUrlForResources

public String getExternalUrlForResources(String resourceId,
                                         List<String> resourcePaths,
                                         Locale locale)
Specified by:
getExternalUrlForResources in interface ResourceService

getLocalResourceForExternalId

public Resource getLocalResourceForExternalId(String externalId,
                                              Locale locale)
Specified by:
getLocalResourceForExternalId in interface ResourceService


Copyright © 2012 OneBusAway. All Rights Reserved.