当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
Server - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.test.security
Class Server
java.lang.Object
org.jboss.portal.test.security.Server
- public class Server
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Server
public Server()
getContextID
public java.lang.String getContextID()
start
public void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
execute
public void execute(Server.Task task)
throws java.lang.Exception
- Simulate a request executed in the scope of the server.
- Parameters:
task
- the task to execute
- Throws:
java.lang.Exception
- any exception
associateRoles
public void associateRoles(java.lang.String[] roleNames)
throws java.lang.Exception
- Throws:
java.lang.Exception