public class RestLocalClient extends WebClient
WebClient.SCHEMA_MODE, WebClient.SCREEN_TYPE
Modifier and Type | Field and Description |
---|---|
HttpClient |
currentClient |
COOKIE_KNOWN_DEVICE, COOKIE_LOGIN_ID, COOKIE_PERSON_ID, COOKIE_REMEMBER_SESSION, CURRENT_SESSION, ENVIROMENT_AREA, ENVIROMENT_DISABLE_BLOCK_BROWSER, ENVIRONMENT_SWITCH_MODE, HEADER_CONTENT_TYPE, HEADER_REFERER, HEADER_USER_AGENT, MAGIC_NUMBER, OPENER_URL, PARAMETER_FORCE_COMPRESSION, REMEMBER_ME_MAX_AGE, SESSION_LOGIN_UID, TEMP_FILE_PREFIX, WINDOW_MODE
BY_PASS_CHECKS, CONTENT_ENCODING_BASE64, CONTENT_ENCODING_DEFLATE, CONTENT_ENCODING_GZIP, cookiesWritten, currentDB, currentDS, dTable, HEADER_ACCEPT_ENCODING, HEADER_CONTENT_ENCODING, HEADER_CONTENT_TRANSFER_ENCODING, request, servletPath, X_FORWARDED_PROTO
Constructor and Description |
---|
RestLocalClient(Login login,
Method method,
HttpClient currentClient,
Session session,
java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
VirtualDB |
getBaseDatabase()
The layer for this client
|
java.lang.String |
getHeader(java.lang.String name)
Returns the request header parameter.
|
Login |
getLogin()
Get's the client's login
|
java.lang.String |
getMethod() |
java.io.BufferedReader |
getReader() |
java.lang.String |
getRequestString() |
Session |
getSession()
get the session
|
java.net.URL |
getUrl() |
boolean |
isLoggedIn()
is the client logged in ?
|
boolean |
isRestThrottleSupported()
we don't want to throttle local ReST calls
|
void |
setHeader(java.lang.String key,
java.lang.String header) |
void |
setIsRestThrottleSupported(boolean isRestThrottleSupported)
set true to do the ReST throttling
|
addCookies, addUpload, calculateSwitchMode, checkAuthorization, checkDeviceValidation, checkOTP, checkRedirect, cleanUp, doSetupDatabase, doSetupDatabase, doSimpleLogin, getAllowCORS, getBrowser, getCalculatedWindowMode, getClientIPAddress, getCurrentCMSPage, getDefaultScreenSize, getHttpSessionId, getMagicNumber, getNewPage, getNewPage, getRawParameter, getReadOnlyDataSource, getSessionAttribute, getUntrustedLoginID, getUploads, getWindowMode, handleCORS, hasLoginCookie, isCleanupFiles, isDisplayOnly, isMDI, isRememberMeInTrustedZone, isSupportedBrowser, login, logout, makeBuilder, makeForm, makePage, outstandingCookieWrite, readSessionAttribute, redirectLogin, rememberMeLogin, removeSessionAttribute, send, send, setCleanupFiles, setCurrentCMSPage, setDisplayOnly, setParameter, supportsGWT, validate, writeSessionAttribute
clearParameters, clickedButton, currentClient, dispose, getCallURL, getCallURL, getCookies, getCookieValue, getDatabase, getDefaultSignature, getDS, getFullRequestString, getHostname, getHttpSession, getJoinRequestCount, getLayerId, getMessageID, getParameter, getParameter, getParameterInt, getParameterLong, getParameterNames, getPathInfo, getProtocolAndHostname, getReportMaxSortRows, getRequest, getRequestText, getServletPath, getSessionAttribute, getStartAfterFullLoadTime, getStartTime, getUniqueRequestCount, hasCookie, hasParameter, isDisposed, isHTTPS, isSecure, isUseCapitalParamNames, joinCommand, logException, logTime, makeServerName, makeThreadName, paused, putCookie, removeCookie, restoreClient, resumed, sendData, setDS, setPathInfo, setServletPath, setSessionAttribute, setUseCapitalParamNames, terminated, toString, writtenCookies
public final HttpClient currentClient
public RestLocalClient(@Nonnull Login login, @Nonnull Method method, @Nullable HttpClient currentClient, Session session, java.net.URL url) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.io.BufferedReader getReader() throws java.io.IOException
@CheckReturnValue @Nonnull public java.lang.String getRequestString()
getRequestString
in class HttpClient
public Session getSession()
WebClient
getSession
in class WebClient
@Nonnull public VirtualDB getBaseDatabase()
WebClient
getBaseDatabase
in class WebClient
@Nonnull public Login getLogin()
WebClient
public boolean isLoggedIn()
WebClient
isLoggedIn
in class WebClient
public void setHeader(@Nonnull java.lang.String key, @Nullable java.lang.String header)
public java.lang.String getHeader(java.lang.String name)
HttpClient
getHeader
in class HttpClient
name
- The header name.public java.net.URL getUrl()
public void setIsRestThrottleSupported(boolean isRestThrottleSupported)
isRestThrottleSupported
- public boolean isRestThrottleSupported()
isRestThrottleSupported
in class HttpClient
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.