|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.restassured.config.SessionConfig
public class SessionConfig
Configure session management for REST Assured. Here you can define a default session id value that'll be used for each request as well as defining the default session id name (by default it's ).
| Field Summary | |
|---|---|
static String |
DEFAULT_SESSION_ID_NAME
|
| Constructor Summary | |
|---|---|
SessionConfig()
Create a new session configuration with session id name "JSESSIONID" and no session id value. |
|
SessionConfig(String sessionIdValue)
Create a new session configuration with session id name "JSESSIONID" and with the supplied session id value. |
|
SessionConfig(String sessionIdName,
String sessionIdValue)
Create a new session config with the given session id name and value. |
|
| Method Summary | |
|---|---|
SessionConfig |
and()
Syntactic sugar. |
boolean |
isSessionIdValueDefined()
|
static SessionConfig |
sessionConfig()
|
String |
sessionIdName()
|
SessionConfig |
sessionIdName(String sessionIdName)
Set the session id name. |
String |
sessionIdValue()
|
SessionConfig |
sessionIdValue(String defaultSessionId)
Specify the default session id to use for each request.. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_SESSION_ID_NAME
| Constructor Detail |
|---|
public SessionConfig()
public SessionConfig(String sessionIdValue)
sessionIdValue - The session id to use for each request.
public SessionConfig(String sessionIdName,
String sessionIdValue)
sessionIdName - The name of the session id, by default it's "JSESSIONID"sessionIdValue - The value of the session id. This session id will be used for each request that uses this session configuration instance (unless it's overwritten by the DSL).
Default is null.| Method Detail |
|---|
public boolean isSessionIdValueDefined()
public SessionConfig sessionIdValue(String defaultSessionId)
defaultSessionId - The stream
public SessionConfig sessionIdName(String sessionIdName)
sessionIdName - The name of the session id variable
public String sessionIdName()
public String sessionIdValue()
public static SessionConfig sessionConfig()
public SessionConfig and()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||