|
Milyn-Commons Version 0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.resource.ServletResourceLocator
Servlet resource locator.
| Constructor Summary | |
ServletResourceLocator(javax.servlet.ServletConfig config,
ExternalResourceLocator externalResourceLocator)
Public constructor. |
|
| Method Summary | |
java.io.InputStream |
getResource(java.lang.String uri)
Get a resource stream through the Servlet container. |
java.io.InputStream |
getResource(java.lang.String configName,
java.lang.String defaultUri)
Get a resource stream through the Servlet container. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServletResourceLocator(javax.servlet.ServletConfig config,
ExternalResourceLocator externalResourceLocator)
config - The ServletConfig instance.externalResourceLocator - Resource locator for resources outside the
Servlet context.| Method Detail |
public java.io.InputStream getResource(java.lang.String configName,
java.lang.String defaultUri)
throws java.lang.IllegalArgumentException,
java.io.IOException
ServletParamUtils.getParameterValue(String, ServletConfig)) exists
for "configName" the method uses use the config value, otherwise it use the "defaultUri" value provided.
Calls getResource(String) to get the resource stream.
getResource in interface ContainerResourceLocatorconfigName - The container configuration entry name whose value
specifies the location of the resource.defaultUri - The default location for the resource.
java.io.IOException - Unable to get the resource stream.
java.lang.IllegalArgumentException - Illegal argument. Check the cause exception for more information.
public java.io.InputStream getResource(java.lang.String uri)
throws java.lang.IllegalArgumentException,
java.io.IOException
ServletContext.getResourceAsStream(java.lang.String)ExternalResourceLocator.getResource(String)
getResource in interface ExternalResourceLocatoruri - The location of the resource to be located.
java.lang.IllegalArgumentException - Illegal argument. Check the cause exception for more information.
java.io.IOException - Unable to get the org.milyn.resource stream.
|
Milyn-Commons Version 0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||