Class ServerConfig

java.lang.Object
com.intuit.karate.http.ServerConfig

public class ServerConfig extends Object
Author:
pthomas3
  • Field Details

    • GLOBAL_SESSION

      public static final Session GLOBAL_SESSION
  • Constructor Details

    • ServerConfig

      public ServerConfig(ResourceResolver resourceResolver)
    • ServerConfig

      public ServerConfig(String root)
  • Method Details

    • getResourceResolver

      public ResourceResolver getResourceResolver()
    • getHostContextPath

      public String getHostContextPath()
    • getHomePagePath

      public String getHomePagePath()
    • getSigninPagePath

      public String getSigninPagePath()
    • getSignoutPagePath

      public String getSignoutPagePath()
    • getSessionCookieName

      public String getSessionCookieName()
    • isStripContextPathFromRequest

      public boolean isStripContextPathFromRequest()
    • isUseGlobalSession

      public boolean isUseGlobalSession()
    • isAutoCreateSession

      public boolean isAutoCreateSession()
    • isNoCache

      public boolean isNoCache()
    • isDevMode

      public boolean isDevMode()
    • getSessionExpirySeconds

      public int getSessionExpirySeconds()
    • getSessionStore

      public SessionStore getSessionStore()
    • getContextFactory

      public Function<Request,ServerContext> getContextFactory()
    • getHttpClientFactory

      public Function<Request,HttpClient> getHttpClientFactory()
    • hostContextPath

      public ServerConfig hostContextPath(String value)
    • homePagePath

      public ServerConfig homePagePath(String value)
    • signinPagePath

      public ServerConfig signinPagePath(String value)
    • signoutPagePath

      public ServerConfig signoutPagePath(String value)
    • sessionCookieName

      public ServerConfig sessionCookieName(String value)
    • stripContextPathFromRequest

      public ServerConfig stripContextPathFromRequest(boolean value)
    • useGlobalSession

      public ServerConfig useGlobalSession(boolean value)
    • autoCreateSession

      public ServerConfig autoCreateSession(boolean value)
    • noCache

      public ServerConfig noCache(boolean value)
    • devMode

      public ServerConfig devMode(boolean value)
    • sessionStore

      public ServerConfig sessionStore(SessionStore value)
    • sessionExpirySeconds

      public ServerConfig sessionExpirySeconds(int value)
    • contextFactory

      public ServerConfig contextFactory(Function<Request,ServerContext> value)
    • httpClientFactory

      public ServerConfig httpClientFactory(Function<Request,HttpClient> value)