public class WebManager extends WebBean
Constructor and Description |
---|
WebManager() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(URL src,
File dst)
Copies the contents at
src to dst . |
AuthToken |
getAuthToken() |
Cache[] |
getCaches() |
int |
getCurrentPage() |
GroupManager |
getGroupManager() |
LockOutManager |
getLockOutManager() |
WebManager |
getManager() |
MultiUserChatManager |
getMultiUserChatManager() |
int |
getPageProperty(String pageName,
String property,
int defaultValue) |
PresenceManager |
getPresenceManager() |
PrivateStorage |
getPrivateStore() |
PubSubServiceInfo |
getPubSubInfo() |
int |
getRange() |
int |
getRefreshValue(String pageName,
int defaultValue)
Returns the number of seconds between each page refresh for the specified page for the
current logged user.
|
RosterManager |
getRosterManager() |
int |
getRowsPerPage(String pageName,
int defaultValue)
Returns the number of rows per page for the specified page for the current logged user.
|
SecurityAuditManager |
getSecurityAuditManager() |
XMPPServerInfo |
getServerInfo() |
SessionManager |
getSessionManager() |
int |
getStart() |
User |
getUser() |
UserManager |
getUserManager() |
XMPPServer |
getXMPPServer() |
javax.servlet.http.HttpSession |
invalidateSession()
Invalidates and recreates session (do this on login/logout).
|
boolean |
isEmbedded() |
boolean |
isServerRunning() |
boolean |
isSetupMode() |
void |
logEvent(String summary,
String details)
Logs a security event as the currently logged in user.
|
void |
restart()
Restarts the server then sleeps for 3 seconds.
|
void |
setPageProperty(String pageName,
String property,
int newValue) |
void |
setRange(int range) |
void |
setRefreshValue(String pageName,
int newValue)
Sets the number of seconds between each page refresh for the specified page for the
current logged user.
|
void |
setRowsPerPage(String pageName,
int newValue)
Sets the new number of rows per page for the specified page for the current logged user.
|
void |
setStart(int start) |
protected void |
showServerDown() |
void |
stop()
Stops the server then sleeps for 3 seconds.
|
void |
validateService() |
public javax.servlet.http.HttpSession invalidateSession()
public AuthToken getAuthToken()
public boolean isSetupMode()
true
if the Openfire container is in setup mode, false
otherwise.public XMPPServer getXMPPServer()
public UserManager getUserManager()
public GroupManager getGroupManager()
public LockOutManager getLockOutManager()
public SecurityAuditManager getSecurityAuditManager()
public RosterManager getRosterManager()
public PrivateStorage getPrivateStore()
public PresenceManager getPresenceManager()
public SessionManager getSessionManager()
public MultiUserChatManager getMultiUserChatManager()
public XMPPServerInfo getServerInfo()
public PubSubServiceInfo getPubSubInfo()
public void logEvent(String summary, String details)
summary
- Summary of event.details
- Details of event, can be null if no details available.public User getUser()
null
if one is not found.public boolean isEmbedded()
true
if the server is in embedded mode, false
otherwise.public void restart()
public void stop()
public WebManager getManager()
public void validateService()
public boolean isServerRunning()
public void setStart(int start)
public int getStart()
public void setRange(int range)
public int getRange()
public int getCurrentPage()
protected void showServerDown()
public static void copy(URL src, File dst) throws IOException
src
to dst
.src
- the source locationdst
- the target locationIOException
- if the copy failedpublic int getRowsPerPage(String pageName, int defaultValue)
pageName
- the name of the page to look up its stored value.defaultValue
- the default value to return if no user value was found.public void setRowsPerPage(String pageName, int newValue)
pageName
- the name of the page to stored its new value.newValue
- the new rows per page value.public int getRefreshValue(String pageName, int defaultValue)
pageName
- the name of the page to look up its stored value.defaultValue
- the default value to return if no user value was found.public void setRefreshValue(String pageName, int newValue)
pageName
- the name of the page to stored its new value.newValue
- the new number of seconds between each page refresh.public Cache[] getCaches()
Copyright © 2003–2020 Ignite Realtime. All rights reserved.