Package com.intuit.karate.http
Class ServerContext
java.lang.Object
com.intuit.karate.http.ServerContext
- All Implemented Interfaces:
org.graalvm.polyglot.proxy.Proxy,org.graalvm.polyglot.proxy.ProxyObject
- Author:
- pthomas3
-
Constructor Summary
ConstructorsConstructorDescriptionServerContext(ServerConfig config, Request request) ServerContext(ServerConfig config, Request request, Map<String, Object> variables) -
Method Summary
Modifier and TypeMethodDescriptionvoidbodyAppend(String body) booleanvoidinit()booleanisAjax()booleanisApi()booleanisClosed()booleanbooleanbooleanbooleanbooleanvoidvoidreadAsString(String resource) voidsetApi(boolean api) booleansetApiIfPathStartsWith(String prefix) voidsetHttpGetAllowed(boolean httpGetAllowed) voidsetLockNeeded(boolean lockNeeded) voidsetRequestValidator(Function<ServerContext, Boolean> requestValidator) voidsetSession(Session session) voidsetStateless(boolean stateless) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graalvm.polyglot.proxy.ProxyObject
removeMember
-
Constructor Details
-
ServerContext
-
ServerContext
-
-
Method Details
-
setApiIfPathStartsWith
-
getSessionCookieValue
-
readAsString
-
read
-
eval
-
evalWith
-
toJson
-
toJs
-
toJsonPretty
-
getConfig
-
getRequest
-
getVariables
-
isNewSession
public boolean isNewSession() -
init
public void init() -
getSession
-
setSession
-
isLockNeeded
public boolean isLockNeeded() -
setLockNeeded
public void setLockNeeded(boolean lockNeeded) -
isStateless
public boolean isStateless() -
setStateless
public void setStateless(boolean stateless) -
isAjax
public boolean isAjax() -
isApi
public boolean isApi() -
setApi
public void setApi(boolean api) -
isClosed
public boolean isClosed() -
isHttpGetAllowed
public boolean isHttpGetAllowed() -
setHttpGetAllowed
public void setHttpGetAllowed(boolean httpGetAllowed) -
setRequestValidator
-
getRequestValidator
-
isSwitched
public boolean isSwitched() -
getRedirectPath
-
getBodyAppends
-
bodyAppend
-
log
-
getMember
- Specified by:
getMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
getMemberKeys
- Specified by:
getMemberKeysin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
hasMember
- Specified by:
hasMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
putMember
- Specified by:
putMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-