public class Application extends Object
| Modifier and Type | Field and Description |
|---|---|
net.oneandone.sushi.fs.Node |
applicationDescriptor
may be null.
|
Integer |
expires
Response expires after the number of seconds specified here.
|
static int |
MANY_YEARS |
Resolver |
resolver |
| Constructor and Description |
|---|
Application(javax.servlet.ServletContext context,
Resolver resolver,
net.oneandone.sushi.fs.Node applicationDescriptor,
Integer expires) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
createEngine(net.oneandone.sushi.fs.Node docroot,
net.oneandone.sushi.fs.Node localhost) |
Engine |
createEngineSimple(net.oneandone.sushi.fs.Node docroot,
net.oneandone.sushi.fs.Node localhost) |
static net.oneandone.sushi.fs.file.FileNode |
file(net.oneandone.sushi.fs.World world,
String str) |
String |
getContextPath() |
static Application |
load(net.oneandone.sushi.fs.World world,
javax.servlet.ServletConfig config,
net.oneandone.sushi.fs.file.FileNode docroot) |
public final Resolver resolver
public final net.oneandone.sushi.fs.Node applicationDescriptor
public final Integer expires
public static final int MANY_YEARS
public static Application load(net.oneandone.sushi.fs.World world, javax.servlet.ServletConfig config, net.oneandone.sushi.fs.file.FileNode docroot) throws Exception
Exceptionpublic static net.oneandone.sushi.fs.file.FileNode file(net.oneandone.sushi.fs.World world,
String str)
throws IOException
IOExceptionpublic String getContextPath()
public Engine createEngineSimple(net.oneandone.sushi.fs.Node docroot, net.oneandone.sushi.fs.Node localhost) throws IOException
IOExceptionpublic Object[] createEngine(net.oneandone.sushi.fs.Node docroot, net.oneandone.sushi.fs.Node localhost) throws IOException
IOExceptionCopyright © 2004–2017 1&1. All rights reserved.