com.eviware.soapui.impl.wsdl.teststeps
Class RestRequestStepResult

java.lang.Object
  extended by com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStepResult
      extended by com.eviware.soapui.impl.wsdl.teststeps.RestRequestStepResult
All Implemented Interfaces:
AssertedXPathsContainer, MessageExchange, MessageExchangeTestStepResult, ResponseAssertedMessageExchange, ResultContainer, TestStepResult

public class RestRequestStepResult
extends WsdlTestStepResult
implements ResponseAssertedMessageExchange, AssertedXPathsContainer, MessageExchangeTestStepResult

TestStepResult for a WsdlTestRequestStep

Author:
ole.matzura

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.TestStepResult
TestStepResult.TestStepStatus
 
Field Summary
 
Fields inherited from interface com.eviware.soapui.impl.wsdl.support.assertions.AssertedXPathsContainer
ASSERTEDXPATHSCONTAINER_PROPERTY
 
Constructor Summary
RestRequestStepResult(HttpTestRequestStepInterface step)
           
 
Method Summary
 void addAssertedXPath(AssertedXPath assertedXPath)
           
 void addProperty(java.lang.String key, java.lang.String value)
           
 void discard()
          Can discard any result data that may be taking up memory.
 ActionList getActions()
          Returns a list of actions that can be applied to this result
 AssertedXPath[] getAssertedXPathsForResponse()
           
 java.lang.String getDomain()
           
 java.lang.String getEncoding()
           
 java.lang.String getEndpoint()
           
 MessageExchange[] getMessageExchanges()
           
 ModelItem getModelItem()
           
 Operation getOperation()
           
 java.lang.String getPassword()
           
 StringToStringMap getProperties()
           
 java.lang.String getProperty(java.lang.String name)
           
 byte[] getRawRequestData()
           
 byte[] getRawResponseData()
           
 Attachment[] getRequestAttachments()
           
 Attachment[] getRequestAttachmentsForPart(java.lang.String partName)
           
 java.lang.String getRequestContent()
           
 java.lang.String getRequestContentAsXml()
           
 StringToStringMap getRequestHeaders()
           
 HttpResponse getResponse()
           
 Attachment[] getResponseAttachments()
           
 Attachment[] getResponseAttachmentsForPart(java.lang.String partName)
           
 java.lang.String getResponseContent()
           
 java.lang.String getResponseContentAsXml()
           
 StringToStringMap getResponseHeaders()
           
 long getTimestamp()
           
 java.lang.String getUsername()
           
 boolean hasRawData()
           
 boolean hasRequest(boolean b)
           
 boolean hasResponse()
           
 void setDomain(java.lang.String domain)
           
 void setEncoding(java.lang.String encoding)
           
 void setEndpoint(java.lang.String endpoint)
           
 void setPassword(java.lang.String password)
           
 void setRequestContent(java.lang.String requestContent)
           
 void setResponse(HttpResponse response)
           
 void setUsername(java.lang.String username)
           
 void writeTo(java.io.PrintWriter writer)
          Writes this result to the specified writer, used for logging.
 
Methods inherited from class com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStepResult
addAction, addMessage, addMessages, getError, getMessages, getSize, getStatus, getTestStep, getTimeStamp, getTimeTaken, isDiscarded, setError, setSize, setStatus, setTimeStamp, setTimeTaken, startTimer, stopTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.model.iface.MessageExchange
getMessages, getTimeTaken, isDiscarded
 
Methods inherited from interface com.eviware.soapui.model.testsuite.TestStepResult
getError, getMessages, getSize, getStatus, getTestStep, getTimeStamp, getTimeTaken, isDiscarded
 

Constructor Detail

RestRequestStepResult

public RestRequestStepResult(HttpTestRequestStepInterface step)
Method Detail

getOperation

public Operation getOperation()
Specified by:
getOperation in interface MessageExchange

getModelItem

public ModelItem getModelItem()
Specified by:
getModelItem in interface MessageExchange
Specified by:
getModelItem in interface ResultContainer

getRequestContent

public java.lang.String getRequestContent()
Specified by:
getRequestContent in interface MessageExchange

setRequestContent

public void setRequestContent(java.lang.String requestContent)

getResponse

public HttpResponse getResponse()

getActions

public ActionList getActions()
Description copied from interface: TestStepResult
Returns a list of actions that can be applied to this result

Specified by:
getActions in interface TestStepResult
Overrides:
getActions in class WsdlTestStepResult

setResponse

public void setResponse(HttpResponse response)

getDomain

public java.lang.String getDomain()

setDomain

public void setDomain(java.lang.String domain)

addProperty

public void addProperty(java.lang.String key,
                        java.lang.String value)

getEncoding

public java.lang.String getEncoding()

setEncoding

public void setEncoding(java.lang.String encoding)

getEndpoint

public java.lang.String getEndpoint()

setEndpoint

public void setEndpoint(java.lang.String endpoint)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

discard

public void discard()
Description copied from interface: TestStepResult
Can discard any result data that may be taking up memory. Timing-values must not be discarded.

Specified by:
discard in interface TestStepResult
Overrides:
discard in class WsdlTestStepResult

writeTo

public void writeTo(java.io.PrintWriter writer)
Description copied from interface: TestStepResult
Writes this result to the specified writer, used for logging.

Specified by:
writeTo in interface TestStepResult
Overrides:
writeTo in class WsdlTestStepResult

getProperties

public StringToStringMap getProperties()
Specified by:
getProperties in interface MessageExchange

getProperty

public java.lang.String getProperty(java.lang.String name)
Specified by:
getProperty in interface MessageExchange

getRequestAttachments

public Attachment[] getRequestAttachments()
Specified by:
getRequestAttachments in interface MessageExchange

getRequestHeaders

public StringToStringMap getRequestHeaders()
Specified by:
getRequestHeaders in interface MessageExchange

getResponseAttachments

public Attachment[] getResponseAttachments()
Specified by:
getResponseAttachments in interface MessageExchange

getResponseContent

public java.lang.String getResponseContent()
Specified by:
getResponseContent in interface MessageExchange

getRequestContentAsXml

public java.lang.String getRequestContentAsXml()
Specified by:
getRequestContentAsXml in interface MessageExchange

getResponseContentAsXml

public java.lang.String getResponseContentAsXml()
Specified by:
getResponseContentAsXml in interface MessageExchange

getResponseHeaders

public StringToStringMap getResponseHeaders()
Specified by:
getResponseHeaders in interface MessageExchange

getTimestamp

public long getTimestamp()
Specified by:
getTimestamp in interface MessageExchange

getAssertedXPathsForResponse

public AssertedXPath[] getAssertedXPathsForResponse()
Specified by:
getAssertedXPathsForResponse in interface ResponseAssertedMessageExchange

addAssertedXPath

public void addAssertedXPath(AssertedXPath assertedXPath)
Specified by:
addAssertedXPath in interface AssertedXPathsContainer

getMessageExchanges

public MessageExchange[] getMessageExchanges()
Specified by:
getMessageExchanges in interface MessageExchangeTestStepResult

getRawRequestData

public byte[] getRawRequestData()
Specified by:
getRawRequestData in interface MessageExchange

getRawResponseData

public byte[] getRawResponseData()
Specified by:
getRawResponseData in interface MessageExchange

getRequestAttachmentsForPart

public Attachment[] getRequestAttachmentsForPart(java.lang.String partName)
Specified by:
getRequestAttachmentsForPart in interface MessageExchange

getResponseAttachmentsForPart

public Attachment[] getResponseAttachmentsForPart(java.lang.String partName)
Specified by:
getResponseAttachmentsForPart in interface MessageExchange

hasRawData

public boolean hasRawData()
Specified by:
hasRawData in interface MessageExchange

hasRequest

public boolean hasRequest(boolean b)
Specified by:
hasRequest in interface MessageExchange

hasResponse

public boolean hasResponse()
Specified by:
hasResponse in interface MessageExchange


Copyright © 2005-2009 eviware.com. All Rights Reserved.