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
public class ServerContext extends Object implements org.graalvm.polyglot.proxy.ProxyObject
- Author:
- pthomas3
-
-
Constructor Summary
Constructors Constructor Description ServerContext(ServerConfig config, Request request)ServerContext(ServerConfig config, Request request, Map<String,Object> variables)
-
Method Summary
-
-
-
Constructor Detail
-
ServerContext
public ServerContext(ServerConfig config, Request request)
-
ServerContext
public ServerContext(ServerConfig config, Request request, Map<String,Object> variables)
-
-
Method Detail
-
setApiIfPathStartsWith
public boolean setApiIfPathStartsWith(String prefix)
-
getSessionCookieValue
public String getSessionCookieValue()
-
getConfig
public ServerConfig getConfig()
-
getRequest
public Request getRequest()
-
isNewSession
public boolean isNewSession()
-
init
public void init()
-
getSession
public Session getSession()
-
setSession
public void setSession(Session session)
-
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)
-
getCustomHandler
public java.util.function.Supplier<Response> getCustomHandler()
-
setCustomHandler
public void setCustomHandler(java.util.function.Supplier<Response> customHandler)
-
setMockRequestCycle
public void setMockRequestCycle(RequestCycle mockRequestCycle)
-
getMockRequestCycle
public RequestCycle getMockRequestCycle()
-
isSwitched
public boolean isSwitched()
-
getRedirectPath
public String getRedirectPath()
-
bodyAppend
public void bodyAppend(String body)
-
getLogAppender
public LogAppender getLogAppender()
-
setLogAppender
public void setLogAppender(LogAppender logAppender)
-
log
public void log(Object... args)
-
getMember
public Object getMember(String key)
- Specified by:
getMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
getMemberKeys
public Object getMemberKeys()
- Specified by:
getMemberKeysin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
hasMember
public boolean hasMember(String key)
- Specified by:
hasMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
putMember
public void putMember(String key, org.graalvm.polyglot.Value value)
- Specified by:
putMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
-