Class 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
    • Method Detail

      • setApiIfPathStartsWith

        public boolean setApiIfPathStartsWith​(String prefix)
      • getSessionCookieValue

        public String getSessionCookieValue()
      • readAsString

        public String readAsString​(String resource)
      • 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()
      • getBodyAppends

        public List<String> getBodyAppends()
      • bodyAppend

        public void bodyAppend​(String body)
      • setLogAppender

        public void setLogAppender​(LogAppender logAppender)
      • log

        public void log​(Object... args)
      • getMember

        public Object getMember​(String key)
        Specified by:
        getMember in interface org.graalvm.polyglot.proxy.ProxyObject
      • getMemberKeys

        public Object getMemberKeys()
        Specified by:
        getMemberKeys in interface org.graalvm.polyglot.proxy.ProxyObject
      • hasMember

        public boolean hasMember​(String key)
        Specified by:
        hasMember in interface org.graalvm.polyglot.proxy.ProxyObject
      • putMember

        public void putMember​(String key,
                              org.graalvm.polyglot.Value value)
        Specified by:
        putMember in interface org.graalvm.polyglot.proxy.ProxyObject