com.eviware.soapui.impl.support
Class AbstractHttpRequest<T extends com.eviware.soapui.config.AbstractRequestConfig>
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<T>
- All Implemented Interfaces:
- AbstractHttpRequestInterface<T>, AttachmentContainer, MutableAttachmentContainer, JMSHeaderContainer, JMSPropertyContainer, Request, ModelItem, PropertyExpansionContainer, PropertyChangeNotifier
- Direct Known Subclasses:
- HttpRequest, RestRequest, WsdlRequest
public abstract class AbstractHttpRequest<T extends com.eviware.soapui.config.AbstractRequestConfig>
- extends AbstractWsdlModelItem<T>
- implements Request, AbstractHttpRequestInterface<T>, JMSHeaderContainer, JMSPropertyContainer
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, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHttpRequest
protected AbstractHttpRequest(T config,
AbstractHttpOperation parent,
java.lang.String icon,
boolean forLoadTest)
getAttachmentsList
protected java.util.List<FileAttachment<?>> getAttachmentsList()
attachFile
public Attachment attachFile(java.io.File file,
boolean cache)
throws java.io.IOException
- Specified by:
attachFile
in interface MutableAttachmentContainer
- Throws:
java.io.IOException
getMethod
public abstract RestRequestInterface.RequestMethod getMethod()
- Specified by:
getMethod
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
getAttachmentPart
public abstract HttpAttachmentPart getAttachmentPart(java.lang.String partName)
- Override just to get a better return type
- Specified by:
getAttachmentPart
in interface AttachmentContainer
- See Also:
AttachmentContainer.getAttachmentPart(java.lang.String)
getAttachmentCount
public int getAttachmentCount()
- Specified by:
getAttachmentCount
in interface AttachmentContainer
getAttachmentAt
public Attachment getAttachmentAt(int index)
- Specified by:
getAttachmentAt
in interface AttachmentContainer
getAttachmentsForPart
public Attachment[] getAttachmentsForPart(java.lang.String partName)
- Specified by:
getAttachmentsForPart
in interface AttachmentContainer
removeAttachment
public void removeAttachment(Attachment attachment)
- Specified by:
removeAttachment
in interface MutableAttachmentContainer
getAttachments
public Attachment[] getAttachments()
- Specified by:
getAttachments
in interface AttachmentContainer
- Specified by:
getAttachments
in interface Request
initIconAnimator
protected AbstractHttpRequest.RequestIconAnimator<?> initIconAnimator()
addSubmitListener
public void addSubmitListener(SubmitListener listener)
- Specified by:
addSubmitListener
in interface Request
removeSubmitListener
public void removeSubmitListener(SubmitListener listener)
- Specified by:
removeSubmitListener
in interface Request
isMultipartEnabled
public boolean isMultipartEnabled()
- Specified by:
isMultipartEnabled
in interface AttachmentContainer
setMultipartEnabled
public void setMultipartEnabled(boolean multipartEnabled)
- Specified by:
setMultipartEnabled
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
isEntitizeProperties
public boolean isEntitizeProperties()
- Specified by:
isEntitizeProperties
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setEntitizeProperties
public void setEntitizeProperties(boolean entitizeProperties)
- Specified by:
setEntitizeProperties
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
release
public void release()
- Specified by:
release
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
- Overrides:
release
in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>
getSubmitListeners
public SubmitListener[] getSubmitListeners()
- Specified by:
getSubmitListeners
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
getOperation
public AbstractHttpOperation getOperation()
- Specified by:
getOperation
in interface Request
copyAttachmentsTo
public void copyAttachmentsTo(WsdlRequest newRequest)
- Specified by:
copyAttachmentsTo
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
importAttachment
public Attachment importAttachment(Attachment attachment)
- Specified by:
importAttachment
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
addAttachmentsChangeListener
public void addAttachmentsChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
addAttachmentsChangeListener
in interface AttachmentContainer
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
removeAttachmentsChangeListener
public void removeAttachmentsChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
removeAttachmentsChangeListener
in interface AttachmentContainer
getRequestContent
public java.lang.String getRequestContent()
- Specified by:
getRequestContent
in interface Request
setRequestContent
public void setRequestContent(java.lang.String request)
- Specified by:
setRequestContent
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
isPrettyPrint
public boolean isPrettyPrint()
- Specified by:
isPrettyPrint
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint)
- Specified by:
setPrettyPrint
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setEndpoint
public void setEndpoint(java.lang.String endpoint)
- Specified by:
setEndpoint
in interface Request
getEndpoint
public java.lang.String getEndpoint()
- Specified by:
getEndpoint
in interface Request
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncoding
in interface Request
setEncoding
public void setEncoding(java.lang.String encoding)
- Specified by:
setEncoding
in interface Request
getTimeout
public java.lang.String getTimeout()
- Specified by:
getTimeout
in interface Request
setTimeout
public void setTimeout(java.lang.String timeout)
getRequestHeaders
public StringToStringMap getRequestHeaders()
- Specified by:
getRequestHeaders
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
getIconAnimator
public AbstractHttpRequest.RequestIconAnimator<?> getIconAnimator()
- Specified by:
getIconAnimator
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setRequestHeaders
public void setRequestHeaders(StringToStringMap map)
- Specified by:
setRequestHeaders
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
getIcon
public javax.swing.ImageIcon getIcon()
- Specified by:
getIcon
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
- Specified by:
getIcon
in interface ModelItem
- Overrides:
getIcon
in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>
getPropertyExpansions
public PropertyExpansion[] getPropertyExpansions()
- Specified by:
getPropertyExpansions
in interface PropertyExpansionContainer
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
- Specified by:
getUsername
in interface Request
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
- Specified by:
getPassword
in interface Request
getDomain
public java.lang.String getDomain()
- Specified by:
getDomain
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setUsername
public void setUsername(java.lang.String username)
- Specified by:
setUsername
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setPassword
public void setPassword(java.lang.String password)
- Specified by:
setPassword
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setDomain
public void setDomain(java.lang.String domain)
- Specified by:
setDomain
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
getSslKeystore
public java.lang.String getSslKeystore()
- Specified by:
getSslKeystore
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setSslKeystore
public void setSslKeystore(java.lang.String sslKeystore)
- Specified by:
setSslKeystore
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
getBindAddress
public java.lang.String getBindAddress()
- Specified by:
getBindAddress
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setBindAddress
public void setBindAddress(java.lang.String bindAddress)
- Specified by:
setBindAddress
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
getMaxSize
public long getMaxSize()
- Specified by:
getMaxSize
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setMaxSize
public void setMaxSize(long maxSize)
- Specified by:
setMaxSize
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
getDumpFile
public java.lang.String getDumpFile()
- Specified by:
getDumpFile
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setDumpFile
public void setDumpFile(java.lang.String df)
- Specified by:
setDumpFile
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
isRemoveEmptyContent
public boolean isRemoveEmptyContent()
- Specified by:
isRemoveEmptyContent
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setRemoveEmptyContent
public void setRemoveEmptyContent(boolean removeEmptyContent)
- Specified by:
setRemoveEmptyContent
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
isStripWhitespaces
public boolean isStripWhitespaces()
- Specified by:
isStripWhitespaces
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setStripWhitespaces
public void setStripWhitespaces(boolean stripWhitespaces)
- Specified by:
setStripWhitespaces
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
isFollowRedirects
public boolean isFollowRedirects()
- Specified by:
isFollowRedirects
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setFollowRedirects
public void setFollowRedirects(boolean followRedirects)
- Specified by:
setFollowRedirects
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
beforeSave
public void beforeSave()
- Specified by:
beforeSave
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
- Overrides:
beforeSave
in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>
setIconAnimator
public void setIconAnimator(AbstractHttpRequest.RequestIconAnimator<?> iconAnimator)
- Specified by:
setIconAnimator
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
getResponse
public HttpResponse getResponse()
- Specified by:
getResponse
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setResponse
public void setResponse(HttpResponse response,
SubmitContext context)
- Specified by:
setResponse
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
resolve
public void resolve(ResolveContext<?> context)
- Specified by:
resolve
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
- Overrides:
resolve
in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>
hasEndpoint
public boolean hasEndpoint()
- Specified by:
hasEndpoint
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
setAfterRequestInjection
public void setAfterRequestInjection(IAfterRequestInjection afterRequestInjection)
getAfterRequestInjection
public IAfterRequestInjection getAfterRequestInjection()
- Specified by:
getAfterRequestInjection
in interface AbstractHttpRequestInterface<T extends com.eviware.soapui.config.AbstractRequestConfig>
Copyright © 2005-2010 eviware.com. All Rights Reserved.