public class SoapClient extends HttpClient
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 |
---|
SoapClient(HttpServletRequest request)
Creates new SoapClient
|
Modifier and Type | Method and Description |
---|---|
void |
checkSession() |
VirtualDB |
getBaseDatabase() |
java.lang.String |
getHttpSessionId() |
Login |
getLogin()
Get's the client's login
|
java.lang.String |
getMethod() |
protected java.lang.String |
getRawParameter(java.lang.String name,
java.lang.String defaultValue)
Gets the parameter value
|
ReadOnlyDataSource |
getReadOnlyDataSource()
get the cached readonly data source
|
Session |
getSession() |
java.lang.Object |
getSessionAttribute(java.lang.String name,
java.lang.Object defaultAttribute)
No HTTP Session for SOAP
|
boolean |
isPubilcAllowed()
are public logins allowed ?
|
Session |
login(java.lang.String userName,
java.lang.String password,
LoginContext loginContext,
java.lang.String signature)
This function logs the user in based on the input parameters.
|
void |
logout()
Logout the client's session
|
void |
sendDocument(org.w3c.dom.Document doc,
HttpServletResponse response,
java.lang.String contentEncoding) |
void |
setAllowPublic(boolean flag)
allow public logins
|
clearParameters, clickedButton, currentClient, dispose, getBrowser, getCallURL, getCallURL, getCookies, getCookieValue, getDatabase, getDefaultSignature, getDS, getFullRequestString, getHeader, getHostname, getHttpSession, getJoinRequestCount, getLayerId, getMessageID, getNewPage, getParameter, getParameter, getParameterInt, getParameterLong, getParameterNames, getPathInfo, getProtocolAndHostname, getReportMaxSortRows, getRequest, getRequestString, getRequestText, getServletPath, getSessionAttribute, getStartAfterFullLoadTime, getStartTime, getUniqueRequestCount, hasCookie, hasParameter, isDisposed, isHTTPS, isRestThrottleSupported, isSecure, isUseCapitalParamNames, joinCommand, logException, logTime, makeServerName, makeThreadName, paused, putCookie, removeCookie, restoreClient, resumed, sendData, setDS, setParameter, setPathInfo, setServletPath, setSessionAttribute, setUseCapitalParamNames, terminated, toString, writtenCookies
public SoapClient(HttpServletRequest request) throws java.lang.Exception
request
- The raw HttpRequestjava.lang.Exception
- a serious problempublic void sendDocument(org.w3c.dom.Document doc, HttpServletResponse response, java.lang.String contentEncoding) throws java.lang.Exception
doc
- the documentresponse
- contentEncoding
- java.lang.Exception
- a serious problempublic java.lang.String getHttpSessionId()
getHttpSessionId
in class HttpClient
public void logout()
logout
in class HttpClient
public Login getLogin()
getLogin
in class HttpClient
@CheckReturnValue @Nullable public Session getSession()
getSession
in class HttpClient
public boolean isPubilcAllowed()
public void setAllowPublic(boolean flag)
flag
- true if allowedpublic void checkSession() throws java.lang.Exception
java.lang.Exception
- a serious problempublic final ReadOnlyDataSource getReadOnlyDataSource() throws java.lang.Exception
HttpClient
getReadOnlyDataSource
in class HttpClient
java.lang.Exception
- a serious problempublic java.lang.String getMethod()
public java.lang.Object getSessionAttribute(java.lang.String name, java.lang.Object defaultAttribute)
getSessionAttribute
in class HttpClient
name
- defaultAttribute
- protected java.lang.String getRawParameter(java.lang.String name, java.lang.String defaultValue)
HttpClient
getRawParameter
in class HttpClient
name
- defaultValue
- public Session login(java.lang.String userName, java.lang.String password, LoginContext loginContext, java.lang.String signature) throws NotFoundException, ExpiredPasswordException, java.lang.Exception
login
in class HttpClient
signature
- userName
- The user ispassword
- The passwordloginContext
- The login contextNotFoundException
- not foundExpiredPasswordException
- expired passwordjava.lang.Exception
- could not log in ( including invalid password)public VirtualDB getBaseDatabase() throws VirtualDBNotFoundException, DBVersionException, VirtualDBExpiredException
getBaseDatabase
in class HttpClient
VirtualDBNotFoundException
DBVersionException
VirtualDBExpiredException
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.