public class StaticContentServiceImpl extends ServiceImpl implements StaticContentService
Service.setServlet(javax.servlet.Servlet)
or Service.setInitParameters(java.util.Map<java.lang.String, java.lang.String>).Service.TransportGuarantee| Constructor and Description |
|---|
StaticContentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.io.Resource |
getContentBase()
Get the static content base.
|
String |
getContentBasePath()
Get static content base as absolute path.
|
boolean |
getDirListing() |
void |
setContentBase(org.springframework.core.io.Resource contentBase)
Set the static content base.
|
void |
setDirListing(boolean dirListing) |
void |
setInitParameters(Map<String,String> params)
Set the initial configuration of the servlet.
|
void |
setServlet(javax.servlet.Servlet servlet)
Set a Servlet to handle this service.
|
getInitParameters, getPath, getServlet, getTransportGuarantee, setPath, setTransportGuaranteeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInitParameters, getPath, getServlet, getTransportGuarantee, setPath, setTransportGuaranteepublic void setInitParameters(Map<String,String> params)
ServiceServletConfig.setInitParameters in interface ServicesetInitParameters in class ServiceImplparams - the parameters.public void setServlet(javax.servlet.Servlet servlet)
ServicesetServlet in interface ServicesetServlet in class ServiceImplservlet - the Servlet.public void setContentBase(org.springframework.core.io.Resource contentBase)
throws IOException
StaticContentServicesetContentBase in interface StaticContentServicecontentBase - Resource representing the static
content base; should be backed by a fileIOException - if the resource cannot be resolved as absolute
file path (not available in a file system)public org.springframework.core.io.Resource getContentBase()
StaticContentServicegetContentBase in interface StaticContentServicepublic String getContentBasePath()
StaticContentServicegetContentBasePath in interface StaticContentServicepublic void setDirListing(boolean dirListing)
setDirListing in interface StaticContentServicedirListing - true to enable directory listing.public boolean getDirListing()
getDirListing in interface StaticContentServiceCopyright © 2022. All rights reserved.