com.eviware.soapui.impl.wsdl.mock
Class WsdlMockRunner
java.lang.Object
com.eviware.soapui.model.support.AbstractMockRunner
com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner
- All Implemented Interfaces:
- MockRunner
public class WsdlMockRunner
- extends AbstractMockRunner
MockRunner that dispatches Http Requests to their designated
WsdlMockOperation if possible
- Author:
- ole.matzura
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WsdlMockRunner
public WsdlMockRunner(WsdlMockService mockService,
WsdlTestRunContext context)
throws java.lang.Exception
- Throws:
java.lang.Exception
getInterfacePrefix
public java.lang.String getInterfacePrefix(Interface iface)
getMockContext
public WsdlMockRunContext getMockContext()
addMockResult
public void addMockResult(WsdlMockResult mockResult)
isRunning
public boolean isRunning()
stop
public void stop()
getMockService
public WsdlMockService getMockService()
getMaxResults
public long getMaxResults()
setMaxResults
public void setMaxResults(long l)
dispatchHeadRequest
public MockResult dispatchHeadRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws DispatchException
- Overrides:
dispatchHeadRequest
in class AbstractMockRunner
- Throws:
DispatchException
dispatchPostRequest
public WsdlMockResult dispatchPostRequest(WsdlMockRequest mockRequest)
throws DispatchException
- Throws:
DispatchException
getMockResultAt
public MockResult getMockResultAt(int index)
getMockResultCount
public int getMockResultCount()
clearResults
public void clearResults()
release
public void release()
dispatchRequest
public MockResult dispatchRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws DispatchException
- Specified by:
dispatchRequest
in interface MockRunner
- Overrides:
dispatchRequest
in class AbstractMockRunner
- Throws:
DispatchException
dispatchGetRequest
public MockResult dispatchGetRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws DispatchException
- Overrides:
dispatchGetRequest
in class AbstractMockRunner
- Throws:
DispatchException
returnFile
public void returnFile(javax.servlet.http.HttpServletResponse response,
java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
dispatchWsdlRequest
protected void dispatchWsdlRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException
printOkXmlResult
public void printOkXmlResult(javax.servlet.http.HttpServletResponse response,
java.lang.String content)
throws java.io.IOException
- Throws:
java.io.IOException
printWsdl
public void printWsdl(javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException
printPartList
public void printPartList(WsdlInterface iface,
StringToStringMap parts,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException
printInterfaceList
public void printInterfaceList(javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException
getOverviewUrl
public java.lang.String getOverviewUrl()
setLogEnabled
public void setLogEnabled(boolean logEnabled)
Copyright © 2005-2010 eviware.com. All Rights Reserved.