com.eviware.soapui.impl.support.http
Class HttpRequest

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<T>
          extended by com.eviware.soapui.impl.support.AbstractHttpRequest<com.eviware.soapui.config.HttpRequestConfig>
              extended by com.eviware.soapui.impl.support.http.HttpRequest
All Implemented Interfaces:
AbstractHttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>, HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>, AttachmentContainer, MutableAttachmentContainer, MutableTestPropertyHolder, Request, ModelItem, PropertyExpansionContainer, TestPropertyHolder, PropertyChangeNotifier
Direct Known Subclasses:
HttpTestRequest, WsaRequest

public class HttpRequest
extends AbstractHttpRequest<com.eviware.soapui.config.HttpRequestConfig>
implements HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>


Nested Class Summary
 class HttpRequest.HttpContentPart
           
 
Nested classes/interfaces inherited from class com.eviware.soapui.impl.support.AbstractHttpRequest
AbstractHttpRequest.RequestIconAnimator<T extends AbstractHttpRequest<?>>
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.iface.Request
Request.SubmitException
 
Field Summary
 
Fields inherited from interface com.eviware.soapui.impl.support.AbstractHttpRequestInterface
BIND_ADDRESS, DISABLE_MULTIPART_ATTACHMENTS, DUMP_FILE, FOLLOW_REDIRECTS, log, MAX_SIZE, REMOVE_EMPTY_CONTENT, REQUEST_HEADERS_PROPERTY, RESPONSE_PROPERTY, STRIP_WHITESPACES
 
Fields inherited from interface com.eviware.soapui.model.iface.Request
ENCODING_PROPERTY, ENDPOINT_PROPERTY, REQUEST_PROPERTY
 
Fields inherited from interface com.eviware.soapui.model.ModelItem
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
 
Fields inherited from interface com.eviware.soapui.impl.wsdl.AttachmentContainer
ATTACHMENTS_PROPERTY
 
Constructor Summary
protected HttpRequest(com.eviware.soapui.config.HttpRequestConfig config, boolean forLoadTest)
           
 
Method Summary
 TestProperty addProperty(java.lang.String name)
           
 void addTestPropertyListener(TestPropertyListener listener)
           
 HttpAttachmentPart getAttachmentPart(java.lang.String partName)
          Override just to get a better return type
 HttpAttachmentPart[] getDefinedAttachmentParts()
           
 java.lang.String getMediaType()
           
 RestRequestInterface.RequestMethod getMethod()
           
 ModelItem getModelItem()
          Returns ModelItem associated with this container
 AbstractHttpOperation getOperation()
           
 RestParamsPropertyHolder getParams()
           
 java.lang.String getPath()
           
 java.util.Map<java.lang.String,TestProperty> getProperties()
           
 java.lang.String getPropertiesLabel()
           
 RestParamProperty getProperty(java.lang.String name)
           
 RestParamProperty getPropertyAt(int index)
           
 int getPropertyCount()
           
 java.util.List<TestProperty> getPropertyList()
           
 java.lang.String[] getPropertyNames()
           
 java.lang.String getPropertyValue(java.lang.String name)
           
 MessagePart[] getRequestParts()
           
 java.lang.String getResponseContentAsXml()
           
 MessagePart[] getResponseParts()
           
 boolean hasProperty(java.lang.String name)
           
 boolean hasRequestBody()
           
 boolean isPostQueryString()
           
 void moveProperty(java.lang.String propertyName, int targetIndex)
           
 TestProperty removeProperty(java.lang.String propertyName)
           
 void removeTestPropertyListener(TestPropertyListener listener)
           
 boolean renameProperty(java.lang.String name, java.lang.String newName)
           
 void setMediaType(java.lang.String mediaType)
           
 void setMethod(RestRequestInterface.RequestMethod method)
           
 void setPostQueryString(boolean b)
           
 void setPropertyValue(java.lang.String name, java.lang.String value)
           
 WsdlSubmit<HttpRequest> submit(SubmitContext submitContext, boolean async)
           
 void updateConfig(com.eviware.soapui.config.HttpRequestConfig request)
           
 
Methods inherited from class com.eviware.soapui.impl.support.AbstractHttpRequest
addAttachmentsChangeListener, addSubmitListener, attachFile, beforeSave, copyAttachmentsTo, getAfterRequestInjection, getAttachmentAt, getAttachmentCount, getAttachments, getAttachmentsForPart, getAttachmentsList, getBindAddress, getDomain, getDumpFile, getEncoding, getEndpoint, getIcon, getIconAnimator, getMaxSize, getPassword, getPropertyExpansions, getRequestContent, getRequestHeaders, getResponse, getSslKeystore, getSubmitListeners, getUsername, hasEndpoint, importAttachment, initIconAnimator, isEntitizeProperties, isFollowRedirects, isMultipartEnabled, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, release, removeAttachment, removeAttachmentsChangeListener, removeSubmitListener, resolve, setAfterRequestInjection, setBindAddress, setDomain, setDumpFile, setEncoding, setEndpoint, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setResponse, setSslKeystore, setStripWhitespaces, setUsername
 
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem
afterLoad, dependsOn, getConfig, getDescription, getId, getName, getParent, getSettings, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
 
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.support.AbstractHttpRequestInterface
beforeSave, copyAttachmentsTo, getAfterRequestInjection, getBindAddress, getDomain, getDumpFile, getIcon, getIconAnimator, getMaxSize, getPassword, getRequestHeaders, getResponse, getSslKeystore, getSubmitListeners, getUsername, hasEndpoint, importAttachment, isEntitizeProperties, isFollowRedirects, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, release, resolve, setBindAddress, setDomain, setDumpFile, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setResponse, setSslKeystore, setStripWhitespaces, setUsername
 
Methods inherited from interface com.eviware.soapui.model.iface.Request
addSubmitListener, dependsOn, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getAttachments, getEncoding, getEndpoint, getRequestContent, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removeSubmitListener, setEncoding, setEndpoint
 
Methods inherited from interface com.eviware.soapui.model.ModelItem
getChildren, getDescription, getId, getName, getParent, getSettings
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface com.eviware.soapui.model.propertyexpansion.PropertyExpansionContainer
getPropertyExpansions
 
Methods inherited from interface com.eviware.soapui.impl.wsdl.MutableAttachmentContainer
attachFile, removeAttachment
 
Methods inherited from interface com.eviware.soapui.impl.wsdl.AttachmentContainer
addAttachmentsChangeListener, getAttachmentAt, getAttachmentCount, getAttachments, getAttachmentsForPart, isMultipartEnabled, removeAttachmentsChangeListener
 

Constructor Detail

HttpRequest

protected HttpRequest(com.eviware.soapui.config.HttpRequestConfig config,
                      boolean forLoadTest)
Method Detail

addProperty

public TestProperty addProperty(java.lang.String name)
Specified by:
addProperty in interface MutableTestPropertyHolder

moveProperty

public void moveProperty(java.lang.String propertyName,
                         int targetIndex)
Specified by:
moveProperty in interface MutableTestPropertyHolder

removeProperty

public TestProperty removeProperty(java.lang.String propertyName)
Specified by:
removeProperty in interface MutableTestPropertyHolder

renameProperty

public boolean renameProperty(java.lang.String name,
                              java.lang.String newName)
Specified by:
renameProperty in interface MutableTestPropertyHolder

addTestPropertyListener

public void addTestPropertyListener(TestPropertyListener listener)
Specified by:
addTestPropertyListener in interface TestPropertyHolder

getModelItem

public ModelItem getModelItem()
Description copied from interface: AttachmentContainer
Returns ModelItem associated with this container

Specified by:
getModelItem in interface AttachmentContainer
Specified by:
getModelItem in interface TestPropertyHolder

getMediaType

public java.lang.String getMediaType()
Specified by:
getMediaType in interface HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>

getPath

public java.lang.String getPath()
Specified by:
getPath in interface HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>

hasRequestBody

public boolean hasRequestBody()
Specified by:
hasRequestBody in interface HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>

getParams

public RestParamsPropertyHolder getParams()
Specified by:
getParams in interface HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>

getProperties

public java.util.Map<java.lang.String,TestProperty> getProperties()
Specified by:
getProperties in interface TestPropertyHolder

getProperty

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

getPropertyAt

public RestParamProperty getPropertyAt(int index)
Specified by:
getPropertyAt in interface TestPropertyHolder

getPropertyCount

public int getPropertyCount()
Specified by:
getPropertyCount in interface TestPropertyHolder

getPropertyNames

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

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String name)
Specified by:
getPropertyValue in interface TestPropertyHolder

isPostQueryString

public boolean isPostQueryString()
Specified by:
isPostQueryString in interface HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>

hasProperty

public boolean hasProperty(java.lang.String name)
Specified by:
hasProperty in interface TestPropertyHolder

setPropertyValue

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

setMediaType

public void setMediaType(java.lang.String mediaType)
Specified by:
setMediaType in interface HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>

setPostQueryString

public void setPostQueryString(boolean b)
Specified by:
setPostQueryString in interface HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>

setMethod

public void setMethod(RestRequestInterface.RequestMethod method)
Specified by:
setMethod in interface HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>

getPropertiesLabel

public java.lang.String getPropertiesLabel()
Specified by:
getPropertiesLabel in interface TestPropertyHolder

removeTestPropertyListener

public void removeTestPropertyListener(TestPropertyListener listener)
Specified by:
removeTestPropertyListener in interface TestPropertyHolder

getAttachmentPart

public HttpAttachmentPart getAttachmentPart(java.lang.String partName)
Description copied from class: AbstractHttpRequest
Override just to get a better return type

Specified by:
getAttachmentPart in interface AttachmentContainer
Specified by:
getAttachmentPart in class AbstractHttpRequest<com.eviware.soapui.config.HttpRequestConfig>
See Also:
AttachmentContainer.getAttachmentPart(java.lang.String)

getDefinedAttachmentParts

public HttpAttachmentPart[] getDefinedAttachmentParts()
Specified by:
getDefinedAttachmentParts in interface AttachmentContainer

getMethod

public RestRequestInterface.RequestMethod getMethod()
Specified by:
getMethod in interface AbstractHttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>
Specified by:
getMethod in class AbstractHttpRequest<com.eviware.soapui.config.HttpRequestConfig>

getRequestParts

public MessagePart[] getRequestParts()
Specified by:
getRequestParts in interface Request

getResponseParts

public MessagePart[] getResponseParts()
Specified by:
getResponseParts in interface Request

getResponseContentAsXml

public java.lang.String getResponseContentAsXml()
Specified by:
getResponseContentAsXml in interface HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>

submit

public WsdlSubmit<HttpRequest> submit(SubmitContext submitContext,
                                      boolean async)
                               throws Request.SubmitException
Specified by:
submit in interface Request
Throws:
Request.SubmitException

updateConfig

public void updateConfig(com.eviware.soapui.config.HttpRequestConfig request)
Specified by:
updateConfig in interface HttpRequestInterface<com.eviware.soapui.config.HttpRequestConfig>

getOperation

public AbstractHttpOperation getOperation()
Specified by:
getOperation in interface Request
Overrides:
getOperation in class AbstractHttpRequest<com.eviware.soapui.config.HttpRequestConfig>

getPropertyList

public java.util.List<TestProperty> getPropertyList()
Specified by:
getPropertyList in interface TestPropertyHolder


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