|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.extensions.webscripts.TestWebScriptServer
org.alfresco.repo.web.scripts.TestWebScriptRepoServer
public class TestWebScriptRepoServer
Stand-alone Web Script Test Server
Nested Class Summary |
---|
Nested classes/interfaces inherited from class 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 |
Field Summary |
---|
Fields inherited from class org.springframework.extensions.webscripts.TestWebScriptServer |
---|
applicationContext, authenticatorFactory, configService, container, fIn, headers, lastCommand, m_messages, serverProperties, username |
Constructor Summary | |
---|---|
TestWebScriptRepoServer()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.springframework.extensions.webscripts.TestWebScriptServer |
---|
afterPropertiesSet, executeCommand, getApplicationContext, getServerProperties, rep, setApplicationContext, setConfigService, setContainer, setMessages, setServletAuthenticatorFactory, submitRequest, submitRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestWebScriptRepoServer()
Method Detail |
---|
public 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.TestWebScriptServer
public 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 context
protected java.lang.String interpretCommand(java.lang.String line) throws java.io.IOException
interpretCommand
in class org.springframework.extensions.webscripts.TestWebScriptServer
line
- The unparsed command
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |