org.apache.jackrabbit.tck.j2ee
Class RepositoryServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.jackrabbit.tck.j2ee.RepositoryServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class RepositoryServlet
extends javax.servlet.http.HttpServlet

The RepositoryServlet connects (starts) to a jsr170 repository and puts the reference into a class variable.

See Also:
Serialized Form

Field Summary
static java.lang.String CHECK_EXCLUDELIST_VERSION_GIF_PATH
          exclude list version checker gif path
static java.lang.String CHECK_TCK_VERSION_GIF_PATH
          tck version checker gif path
static java.lang.String EXCLUDE_LIST_URL
          exclude list url name
static java.lang.String INIT_PARAM_REPOSITORY_CONFIG
          repository configuration path
static java.lang.String INIT_PARAM_REPOSITORY_HOME
          repository home
static java.lang.String INIT_PARAM_REPOSITORY_NAME
          repository name
static java.lang.String PARAM_LOG4J_CONFIG
          log4j config
static java.lang.String SUBMIT_URL
          submit url name
static java.lang.String TCK_UPDATE_URL
          exclude list version checker gif path
static java.lang.String TCK_WEBAPP_JAR_PATH
          tck webapp jar path name
static java.lang.String USER_ID
          user id name
static java.lang.String USER_PASSWORD
          user password name
 
Constructor Summary
RepositoryServlet()
           
 
Method Summary
 void destroy()
           
static java.lang.String getExcludeListCheckerPath()
          Returns the excludelist checker url
static java.lang.String getExcludeListUrl()
          Returns the exclude list url
static javax.jcr.Repository getRepository()
          Returns the JSR170 repository
static javax.jcr.Session getSession()
          Returns the jcr session
static java.lang.String getSubmitUrl()
          Returns the url where the test result have to be submitted
static java.lang.String getTckUpdateUrl()
          Returns the tck update url
static java.lang.String getTckVersionCheckerPath()
          Returns the tck version checker path.
static java.lang.String getTckWebappJarPath()
          Returns the path where the tck webapp jar file is placed
 void init()
          The init method starts the repository to read/write test results and configuration, sets the jaas config and the user id and the user password
static javax.jcr.Session login()
          Logs in to the repository.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_PARAM_REPOSITORY_CONFIG

public static final java.lang.String INIT_PARAM_REPOSITORY_CONFIG
repository configuration path

See Also:
Constant Field Values

INIT_PARAM_REPOSITORY_HOME

public static final java.lang.String INIT_PARAM_REPOSITORY_HOME
repository home

See Also:
Constant Field Values

INIT_PARAM_REPOSITORY_NAME

public static final java.lang.String INIT_PARAM_REPOSITORY_NAME
repository name

See Also:
Constant Field Values

USER_ID

public static final java.lang.String USER_ID
user id name

See Also:
Constant Field Values

USER_PASSWORD

public static final java.lang.String USER_PASSWORD
user password name

See Also:
Constant Field Values

SUBMIT_URL

public static final java.lang.String SUBMIT_URL
submit url name

See Also:
Constant Field Values

EXCLUDE_LIST_URL

public static final java.lang.String EXCLUDE_LIST_URL
exclude list url name

See Also:
Constant Field Values

CHECK_TCK_VERSION_GIF_PATH

public static final java.lang.String CHECK_TCK_VERSION_GIF_PATH
tck version checker gif path

See Also:
Constant Field Values

CHECK_EXCLUDELIST_VERSION_GIF_PATH

public static final java.lang.String CHECK_EXCLUDELIST_VERSION_GIF_PATH
exclude list version checker gif path

See Also:
Constant Field Values

TCK_UPDATE_URL

public static final java.lang.String TCK_UPDATE_URL
exclude list version checker gif path

See Also:
Constant Field Values

TCK_WEBAPP_JAR_PATH

public static final java.lang.String TCK_WEBAPP_JAR_PATH
tck webapp jar path name

See Also:
Constant Field Values

PARAM_LOG4J_CONFIG

public static final java.lang.String PARAM_LOG4J_CONFIG
log4j config

See Also:
Constant Field Values
Constructor Detail

RepositoryServlet

public RepositoryServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
The init method starts the repository to read/write test results and configuration, sets the jaas config and the user id and the user password

Throws:
javax.servlet.ServletException

destroy

public void destroy()

getRepository

public static javax.jcr.Repository getRepository()
Returns the JSR170 repository

Returns:
a jsr170 repository

getSession

public static javax.jcr.Session getSession()
Returns the jcr session

Returns:

login

public static javax.jcr.Session login()
                               throws javax.jcr.RepositoryException
Logs in to the repository. The user to login is specified in the servlet config.

Throws:
javax.jcr.RepositoryException

getSubmitUrl

public static java.lang.String getSubmitUrl()
Returns the url where the test result have to be submitted

Returns:
submit url

getTckWebappJarPath

public static java.lang.String getTckWebappJarPath()
Returns the path where the tck webapp jar file is placed

Returns:
path to jar

getExcludeListUrl

public static java.lang.String getExcludeListUrl()
Returns the exclude list url

Returns:
exclude list provider url

getTckVersionCheckerPath

public static java.lang.String getTckVersionCheckerPath()
Returns the tck version checker path.

Returns:
tck version checker path

getExcludeListCheckerPath

public static java.lang.String getExcludeListCheckerPath()
Returns the excludelist checker url

Returns:
exclude list checker url

getTckUpdateUrl

public static java.lang.String getTckUpdateUrl()
Returns the tck update url

Returns:
url pointing to update page


Copyright © -2005 . All Rights Reserved.