public abstract class ResultFactory
extends org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener| Constructor and Description |
|---|
ResultFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Result |
badRequest() |
static Result |
badRequest(String content) |
static Result |
body(String content) |
static Result |
forbidden() |
static Result |
forbidden(String content) |
static Result |
header(String name,
String value) |
static Result |
internalServerError() |
static Result |
internalServerError(String content) |
static Result |
notFound() |
static Result |
notFound(String content) |
static Result |
ok() |
static Result |
ok(String content) |
String |
readBodyAsString(javax.servlet.http.HttpServletRequest request) |
static Result |
render(String templatePath,
Object data) |
destroy, doStart, doStop, dumpThis, getServer, setServeraddBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic static Result ok()
public static Result badRequest()
public static Result forbidden()
public static Result notFound()
public static Result internalServerError()
public String readBodyAsString(javax.servlet.http.HttpServletRequest request)
Copyright © 2017 Uqbar Project. All rights reserved.