com.eviware.soapui.impl.wsdl.submit.transports.http
Class BaseHttpResponse

java.lang.Object
  extended by com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse
All Implemented Interfaces:
HttpResponse, Response
Direct Known Subclasses:
MimeMessageResponse, SinglePartHttpResponse

public abstract class BaseHttpResponse
extends java.lang.Object
implements HttpResponse


Constructor Summary
BaseHttpResponse(ExtendedHttpMethod httpMethod, AbstractHttpRequestInterface<?> httpRequest)
           
 
Method Summary
 Attachment[] getAttachments()
           
 Attachment[] getAttachmentsForPart(java.lang.String partName)
           
 java.lang.String getContentAsXml()
           
 java.lang.String getContentType()
           
 java.lang.String getHttpVersion()
           
 RestRequestInterface.RequestMethod getMethod()
           
 java.lang.String getProperty(java.lang.String name)
           
 java.lang.String[] getPropertyNames()
           
 byte[] getRawRequestData()
           
 byte[] getRawResponseData()
           
 AbstractHttpRequestInterface<?> getRequest()
           
 java.lang.String getRequestContent()
           
 StringToStringMap getRequestHeaders()
           
 StringToStringMap getResponseHeaders()
           
 SSLInfo getSSLInfo()
           
 int getStatusCode()
           
 long getTimestamp()
           
 long getTimeTaken()
           
 java.net.URL getURL()
           
protected  void initHeaders(ExtendedHttpMethod httpMethod)
           
 void setProperty(java.lang.String name, java.lang.String value)
           
 
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.impl.wsdl.submit.transports.http.HttpResponse
setResponseContent
 
Methods inherited from interface com.eviware.soapui.model.iface.Response
getContentAsString, getContentLength
 

Constructor Detail

BaseHttpResponse

public BaseHttpResponse(ExtendedHttpMethod httpMethod,
                        AbstractHttpRequestInterface<?> httpRequest)
Method Detail

initHeaders

protected void initHeaders(ExtendedHttpMethod httpMethod)

getRequestHeaders

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

getResponseHeaders

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

getTimeTaken

public long getTimeTaken()
Specified by:
getTimeTaken in interface Response

getSSLInfo

public SSLInfo getSSLInfo()
Specified by:
getSSLInfo in interface HttpResponse

getTimestamp

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

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface Response

getURL

public java.net.URL getURL()
Specified by:
getURL in interface HttpResponse

getRequest

public AbstractHttpRequestInterface<?> getRequest()
Specified by:
getRequest in interface HttpResponse
Specified by:
getRequest in interface Response

getStatusCode

public int getStatusCode()
Specified by:
getStatusCode in interface HttpResponse

getAttachments

public Attachment[] getAttachments()
Specified by:
getAttachments in interface Response

getAttachmentsForPart

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

getRawRequestData

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

getRawResponseData

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

getMethod

public RestRequestInterface.RequestMethod getMethod()
Specified by:
getMethod in interface HttpResponse

getHttpVersion

public java.lang.String getHttpVersion()
Specified by:
getHttpVersion in interface HttpResponse

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Specified by:
setProperty in interface Response

getProperty

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

getPropertyNames

public java.lang.String[] getPropertyNames()
Specified by:
getPropertyNames in interface Response

getRequestContent

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

getContentAsXml

public java.lang.String getContentAsXml()
Specified by:
getContentAsXml in interface HttpResponse


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