com.eviware.soapui.impl.support.http
Class HttpRequest
java.lang.Object
com.eviware.soapui.model.support.AbstractModelItem
com.eviware.soapui.model.support.AbstractAnimatableModelItem<com.eviware.soapui.config.ModelItemConfig>
com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<T>
com.eviware.soapui.impl.support.AbstractHttpRequest<com.eviware.soapui.config.HttpRequestConfig>
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, JMSHeaderContainer, JMSPropertyContainer, 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>
Constructor Summary |
protected |
HttpRequest(com.eviware.soapui.config.HttpRequestConfig config,
boolean forLoadTest)
|
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, getTimeout, 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, setTimeout, 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 |
HttpRequest
protected HttpRequest(com.eviware.soapui.config.HttpRequestConfig config,
boolean forLoadTest)
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
getJMSHeaderConfig
public JMSHeaderConfig getJMSHeaderConfig()
- Specified by:
getJMSHeaderConfig
in interface JMSHeaderContainer
getJMSPropertiesConfig
public JMSPropertiesConfig getJMSPropertiesConfig()
- Specified by:
getJMSPropertiesConfig
in interface JMSPropertyContainer
notifyPropertyChanged
public void notifyPropertyChanged(java.lang.String responseContentProperty,
java.lang.String oldContent,
java.lang.String responseContent)
- Overrides:
notifyPropertyChanged
in class AbstractModelItem
Copyright © 2005-2010 eviware.com. All Rights Reserved.