public class TestWebScriptRepoServer
extends org.springframework.extensions.webscripts.TestWebScriptServer
org.springframework.extensions.webscripts.TestWebScriptServer.DeleteRequest, org.springframework.extensions.webscripts.TestWebScriptServer.GetRequest, org.springframework.extensions.webscripts.TestWebScriptServer.MockHttpServletResponseResponse, org.springframework.extensions.webscripts.TestWebScriptServer.PatchRequest, org.springframework.extensions.webscripts.TestWebScriptServer.PostRequest, org.springframework.extensions.webscripts.TestWebScriptServer.PutRequest, org.springframework.extensions.webscripts.TestWebScriptServer.Request, org.springframework.extensions.webscripts.TestWebScriptServer.Response| Constructor and Description |
|---|
TestWebScriptRepoServer() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getDefaultUserName()
Get default user name
|
static org.springframework.extensions.webscripts.TestWebScriptServer |
getTestServer() |
static org.springframework.extensions.webscripts.TestWebScriptServer |
getTestServer(java.lang.String appendTestConfigLocation)
Start up a context and get the server bean.
|
protected java.lang.String |
interpretCommand(java.lang.String line)
Interpret a single command using the BufferedReader passed in for any data needed.
|
static void |
main(java.lang.String[] args)
Main entry point.
|
void |
setAuthenticationService(org.alfresco.service.cmr.security.AuthenticationService authenticationService) |
void |
setTransactionHelper(org.alfresco.repo.transaction.RetryingTransactionHelper retryingTransactionHelper)
Sets helper that provides transaction callbacks
|
afterPropertiesSet, executeCommand, getApplicationContext, getServerProperties, rep, setApplicationContext, setConfigService, setContainer, setMessages, setServletAuthenticatorFactory, submitRequest, submitRequestpublic static void main(java.lang.String[] args)
public void setTransactionHelper(org.alfresco.repo.transaction.RetryingTransactionHelper retryingTransactionHelper)
public void setAuthenticationService(org.alfresco.service.cmr.security.AuthenticationService authenticationService)
authenticationService - protected java.lang.String getDefaultUserName()
getDefaultUserName in class org.springframework.extensions.webscripts.TestWebScriptServerpublic static org.springframework.extensions.webscripts.TestWebScriptServer getTestServer()
public static org.springframework.extensions.webscripts.TestWebScriptServer getTestServer(java.lang.String appendTestConfigLocation)
This method will close and restart the application context only if the configuration has changed.
appendTestConfigLocation - additional context file to include in the application contextprotected java.lang.String interpretCommand(java.lang.String line)
throws java.io.IOException
interpretCommand in class org.springframework.extensions.webscripts.TestWebScriptServerline - The unparsed commandjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.