Package ubic.gemma.web.assets
Class ServletStaticAssetServer
- java.lang.Object
-
- ubic.gemma.web.assets.ServletStaticAssetServer
-
- All Implemented Interfaces:
StaticAssetServer
public class ServletStaticAssetServer extends Object implements StaticAssetServer
Serve static assets from the servlet context.- Author:
- poirigui
-
-
Constructor Summary
Constructors Constructor Description ServletStaticAssetServer(javax.servlet.ServletContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseUrl()
Obtain the base URL for resolving static assets from the server.String
getLaunchInstruction()
Obtain launch instructions if the server is not running.boolean
isAlive()
Indicate if the static asset server is running.
-
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
Description copied from interface:StaticAssetServer
Obtain the base URL for resolving static assets from the server.- Specified by:
getBaseUrl
in interfaceStaticAssetServer
-
isAlive
public boolean isAlive()
Description copied from interface:StaticAssetServer
Indicate if the static asset server is running.- Specified by:
isAlive
in interfaceStaticAssetServer
-
getLaunchInstruction
public String getLaunchInstruction()
Description copied from interface:StaticAssetServer
Obtain launch instructions if the server is not running.- Specified by:
getLaunchInstruction
in interfaceStaticAssetServer
-
-