public interface StaticContentService extends Service
Server.setServices(com.vmware.vapi.protocol.server.rpc.http.Service[]).Service.TransportGuarantee| 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) |
getInitParameters, getPath, getServlet, getTransportGuarantee, setInitParameters, setPath, setServlet, setTransportGuaranteevoid setContentBase(org.springframework.core.io.Resource contentBase)
throws IOException
contentBase - 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)org.springframework.core.io.Resource getContentBase()
String getContentBasePath()
void setDirListing(boolean dirListing)
dirListing - true to enable directory listing.boolean getDirListing()
Copyright © 2023. All rights reserved.