Package de.mhus.cherry.web.api
Interface VirtualHost
-
- All Known Subinterfaces:
VirtualWebSpace
public interface VirtualHost
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddoRequest(InternalCallContext call)FilefindFile(String path)org.osgi.framework.BundlegetBundle()StringgetCharsetEncoding()de.mhus.lib.core.config.IConfiggetConfig()Get WebSpace configuration'StringgetMimeType(String file)StringgetName()de.mhus.lib.core.IPropertiesgetProperties()Web Space specific properties.TypeDefinitiongetType(CallContext context, String type)DategetUpdated()Set<String>getVirtualHostAliases()booleanisTraceAccess()booleanisTraceErrors()TypeDefinitionprepareHead(CallContext context, String type, boolean fallback)voidsendError(CallContext call, int sc, Throwable t)voidsetBundle(org.osgi.framework.Bundle bundle)voidstart(CherryApi api)voidstop(CherryApi api)
-
-
-
Method Detail
-
sendError
void sendError(CallContext call, int sc, Throwable t)
-
doRequest
void doRequest(InternalCallContext call)
-
getConfig
de.mhus.lib.core.config.IConfig getConfig()
Get WebSpace configuration'- Returns:
- Config object
-
getProperties
de.mhus.lib.core.IProperties getProperties()
Web Space specific properties.- Returns:
- Properties container
-
start
void start(CherryApi api) throws de.mhus.lib.errors.MException
- Throws:
de.mhus.lib.errors.MException
-
stop
void stop(CherryApi api)
-
setBundle
void setBundle(org.osgi.framework.Bundle bundle)
-
getBundle
org.osgi.framework.Bundle getBundle()
-
getName
String getName()
-
getCharsetEncoding
String getCharsetEncoding()
-
isTraceAccess
boolean isTraceAccess()
-
isTraceErrors
boolean isTraceErrors()
-
getUpdated
Date getUpdated()
-
prepareHead
TypeDefinition prepareHead(CallContext context, String type, boolean fallback)
-
getType
TypeDefinition getType(CallContext context, String type)
-
-