public class WsdlMockRunner extends AbstractMockRunner
| Constructor and Description |
|---|
WsdlMockRunner(WsdlMockService mockService,
WsdlTestRunContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMockResult(WsdlMockResult mockResult) |
void |
clearResults() |
MockResult |
dispatchGetRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
MockResult |
dispatchHeadRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
WsdlMockResult |
dispatchPostRequest(WsdlMockRequest mockRequest) |
MockResult |
dispatchRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
dispatchWsdlRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
getInterfacePrefix(Interface iface) |
long |
getMaxResults() |
WsdlMockRunContext |
getMockContext() |
MockResult |
getMockResultAt(int index) |
int |
getMockResultCount() |
WsdlMockService |
getMockService() |
String |
getOverviewUrl() |
boolean |
isRunning() |
void |
printInterfaceList(javax.servlet.http.HttpServletResponse response) |
void |
printOkXmlResult(javax.servlet.http.HttpServletResponse response,
String content) |
void |
printPartList(WsdlInterface iface,
StringToStringMap parts,
javax.servlet.http.HttpServletResponse response) |
void |
printWsdl(javax.servlet.http.HttpServletResponse response) |
void |
release() |
void |
returnFile(javax.servlet.http.HttpServletResponse response,
File file) |
void |
setLogEnabled(boolean logEnabled) |
void |
setMaxResults(long l) |
void |
start() |
void |
stop() |
dispatchDeleteRequest, dispatchPatchRequest, dispatchPostRequest, dispatchPutRequestpublic WsdlMockRunner(WsdlMockService mockService, WsdlTestRunContext context) throws Exception
Exceptionpublic WsdlMockRunContext getMockContext()
public void addMockResult(WsdlMockResult mockResult)
public boolean isRunning()
public void stop()
public WsdlMockService getMockService()
public long getMaxResults()
public void setMaxResults(long l)
public MockResult dispatchHeadRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws DispatchException
dispatchHeadRequest in class AbstractMockRunnerDispatchExceptionpublic WsdlMockResult dispatchPostRequest(WsdlMockRequest mockRequest) throws Exception
Exceptionpublic MockResult getMockResultAt(int index)
public int getMockResultCount()
public void clearResults()
public void release()
public MockResult dispatchRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws DispatchException
dispatchRequest in interface MockRunnerdispatchRequest in class AbstractMockRunnerDispatchExceptionpublic MockResult dispatchGetRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws DispatchException
dispatchGetRequest in class AbstractMockRunnerDispatchExceptionpublic void returnFile(javax.servlet.http.HttpServletResponse response,
File file)
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOExceptionprotected void dispatchWsdlRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic void printOkXmlResult(javax.servlet.http.HttpServletResponse response,
String content)
throws IOException
IOExceptionpublic void printWsdl(javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic void printPartList(WsdlInterface iface, StringToStringMap parts, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionpublic void printInterfaceList(javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic String getOverviewUrl()
public void setLogEnabled(boolean logEnabled)
Copyright © 2013. All Rights Reserved.