public abstract class BaseController
extends spark.RouteImpl
| Modifier | Constructor and Description |
|---|---|
protected |
BaseController(String path) |
protected |
BaseController(String path,
boolean allowCORS) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPath() |
Object |
handle(spark.Request request,
spark.Response response) |
protected abstract Object |
handleRequest(spark.Request request,
spark.Response response) |
boolean |
isAllowCORS() |
protected BaseController(String path)
protected BaseController(String path, boolean allowCORS)
public String getPath()
public Object handle(spark.Request request, spark.Response response)
handle in interface spark.Routehandle in class spark.RouteImplprotected abstract Object handleRequest(spark.Request request, spark.Response response) throws Exception
Exceptionpublic boolean isAllowCORS()
Copyright © 2015. All rights reserved.