站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

ClientSession - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.junit
Class ClientSession

java.lang.Object
  extended byorg.jboss.portal.junit.ClientSession

public class ClientSession
extends java.lang.Object


Method Summary
 void close()
           
 void deploy(java.lang.String appId)
          Deploy a portlet application.
 ServerResponse doGet(java.lang.String uri)
           
 ServerResponse doGet(java.lang.String uri, java.lang.String[] componentNames)
           
 boolean isClosed()
           
 void undeploy()
          Undeploy a portlet application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doGet

public ServerResponse doGet(java.lang.String uri,
                            java.lang.String[] componentNames)
                     throws java.io.IOException,
                            java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException - if the session if closed

doGet

public ServerResponse doGet(java.lang.String uri)
                     throws java.io.IOException,
                            java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException - if the session if closed

deploy

public void deploy(java.lang.String appId)
            throws org.jboss.deployment.DeploymentException,
                   java.lang.IllegalArgumentException,
                   java.lang.IllegalStateException,
                   java.io.IOException
Deploy a portlet application. This method blocks until the deployment is finished

Throws:
org.jboss.deployment.DeploymentException - if the deployment process failed
java.lang.IllegalStateException - if the session if closed
java.lang.IllegalArgumentException - if the application name does not give a valid deployment
java.io.IOException

undeploy

public void undeploy()
              throws java.lang.IllegalStateException
Undeploy a portlet application. This method blocks until the undeployment is finished.

Throws:
java.lang.IllegalStateException - if the session if closed

close

public void close()
           throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException - if the session is closed

isClosed

public boolean isClosed()