public abstract class AbstractMockRequest extends Object implements MockRequest
Constructor and Description |
---|
AbstractMockRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WsdlMockRunContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentElement
public AbstractMockRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, WsdlMockRunContext context) throws Exception
Exception
protected void initPostRequest(javax.servlet.http.HttpServletRequest request, WsdlMockRunContext context) throws Exception
Exception
protected void initProtocolSpecificPostContent(WsdlMockRunContext context, String contentType) throws IOException
IOException
protected boolean isMultiPart(String contentType)
public String getProtocol()
getProtocol
in interface MockRequest
public Attachment[] getRequestAttachments()
getRequestAttachments
in interface MockRequest
public String getRequestContent()
getRequestContent
in interface MockRequest
public StringToStringsMap getRequestHeaders()
getRequestHeaders
in interface MockRequest
public javax.servlet.http.HttpServletResponse getHttpResponse()
getHttpResponse
in interface MockRequest
public javax.servlet.http.HttpServletRequest getHttpRequest()
getHttpRequest
in interface MockRequest
public RestRequestInterface.HttpMethod getMethod()
getMethod
in interface MockRequest
public String getPath()
getPath
in interface MockRequest
public WsdlMockRunContext getContext()
getContext
in interface MockRequest
public void setOperation(WsdlOperation operation)
public WsdlMockRunContext getRequestContext()
getRequestContext
in interface MockRequest
public byte[] getRawRequestData()
getRawRequestData
in interface MockRequest
public javax.servlet.http.HttpServletRequest getRequest()
public void setActualRequestContent(String actualRequestContent)
public void setMultipartMessageSupport(MultipartMessageSupport multipartMessageSupport)
public MultipartMessageSupport getMultipartMessageSupport()
public void setRequestContent(String requestContent)
setRequestContent
in interface MockRequest
public void setMockRequestDataSource(MockRequestDataSource mockRequestDataSource)
public void setResponseMessage(boolean responseMessage)
public boolean isResponseMessage()
public void setRequestXmlObject(org.apache.xmlbeans.XmlObject requestXmlObject)
public org.apache.xmlbeans.XmlObject getRequestXmlObject() throws org.apache.xmlbeans.XmlException
getRequestXmlObject
in interface MockRequest
org.apache.xmlbeans.XmlException
Copyright © 2019. All Rights Reserved.