com.eviware.soapui.impl.support
Class AbstractHttpRequest<T extends com.eviware.soapui.config.AbstractRequestConfig>

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<T>
All Implemented Interfaces:
AttachmentContainer, MutableAttachmentContainer, Request, ModelItem, PropertyExpansionContainer, PropertyChangeNotifier
Direct Known Subclasses:
RestRequest, WsdlRequest

public abstract class AbstractHttpRequest<T extends com.eviware.soapui.config.AbstractRequestConfig>
extends AbstractWsdlModelItem<T>
implements Request, PropertyExpansionContainer, MutableAttachmentContainer


Nested Class Summary
static class AbstractHttpRequest.RequestIconAnimator<T extends AbstractHttpRequest<?>>
           
static class AbstractHttpRequest.RequestMethod
           
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.iface.Request
Request.SubmitException
 
Field Summary
static java.lang.String BIND_ADDRESS
           
static java.lang.String DISABLE_MULTIPART_ATTACHMENTS
           
static java.lang.String DUMP_FILE
           
static org.apache.log4j.Logger log
           
static java.lang.String MAX_SIZE
           
static java.lang.String REMOVE_EMPTY_CONTENT
           
static java.lang.String REQUEST_HEADERS_PROPERTY
           
static java.lang.String RESPONSE_PROPERTY
           
static java.lang.String 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 AbstractHttpRequest(T config, AbstractHttpOperation parent, java.lang.String icon, boolean forLoadTest)
           
 
Method Summary
 void addAttachmentsChangeListener(java.beans.PropertyChangeListener listener)
           
 void addSubmitListener(SubmitListener listener)
           
 Attachment attachFile(java.io.File file, boolean cache)
           
 void beforeSave()
           
 void copyAttachmentsTo(WsdlRequest newRequest)
           
 Attachment getAttachmentAt(int index)
           
 int getAttachmentCount()
           
abstract  HttpAttachmentPart getAttachmentPart(java.lang.String partName)
          Override just to get a better return type
 Attachment[] getAttachments()
           
 Attachment[] getAttachmentsForPart(java.lang.String partName)
           
protected  java.util.List<FileAttachment<?>> getAttachmentsList()
           
 java.lang.String getBindAddress()
           
 java.lang.String getDomain()
           
 java.lang.String getDumpFile()
           
 java.lang.String getEncoding()
           
 java.lang.String getEndpoint()
           
 javax.swing.ImageIcon getIcon()
           
 AbstractHttpRequest.RequestIconAnimator<?> getIconAnimator()
           
 long getMaxSize()
           
abstract  AbstractHttpRequest.RequestMethod getMethod()
           
 AbstractHttpOperation getOperation()
           
 java.lang.String getPassword()
           
 PropertyExpansion[] getPropertyExpansions()
           
 java.lang.String getRequestContent()
           
 StringToStringMap getRequestHeaders()
           
 HttpResponse getResponse()
           
 java.lang.String getSslKeystore()
           
 SubmitListener[] getSubmitListeners()
           
 java.lang.String getUsername()
           
 boolean hasEndpoint()
           
 Attachment importAttachment(Attachment attachment)
           
protected  AbstractHttpRequest.RequestIconAnimator<?> initIconAnimator()
           
 boolean isMultipartEnabled()
           
 boolean isPrettyPrint()
           
 boolean isReadOnly()
           
 boolean isRemoveEmptyContent()
           
 boolean isStripWhitespaces()
           
 void release()
           
 void removeAttachment(Attachment attachment)
           
 void removeAttachmentsChangeListener(java.beans.PropertyChangeListener listener)
           
 void removeSubmitListener(SubmitListener listener)
           
 void resolve(ResolveContext context)
           
 void setBindAddress(java.lang.String bindAddress)
           
 void setDomain(java.lang.String domain)
           
 void setDumpFile(java.lang.String df)
           
 void setEncoding(java.lang.String encoding)
           
 void setEndpoint(java.lang.String endpoint)
           
 void setIconAnimator(AbstractHttpRequest.RequestIconAnimator<?> iconAnimator)
           
 void setMaxSize(long maxSize)
           
 void setMultipartEnabled(boolean multipartEnabled)
           
 void setPassword(java.lang.String password)
           
 void setPrettyPrint(boolean prettyPrint)
           
 void setRemoveEmptyContent(boolean removeEmptyContent)
           
 void setRequestContent(java.lang.String request)
           
 void setRequestHeaders(StringToStringMap map)
           
 void setResponse(HttpResponse response, SubmitContext context)
           
 void setSslKeystore(java.lang.String sslKeystore)
           
 void setStripWhitespaces(boolean stripWhitespaces)
           
 void setUsername(java.lang.String username)
           
 
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.model.iface.Request
getRequestParts, getResponseParts, submit
 
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.impl.wsdl.AttachmentContainer
getDefinedAttachmentParts, getModelItem
 

Field Detail

log

public static final org.apache.log4j.Logger log

RESPONSE_PROPERTY

public static final java.lang.String RESPONSE_PROPERTY

REMOVE_EMPTY_CONTENT

public static final java.lang.String REMOVE_EMPTY_CONTENT

STRIP_WHITESPACES

public static final java.lang.String STRIP_WHITESPACES

REQUEST_HEADERS_PROPERTY

public static final java.lang.String REQUEST_HEADERS_PROPERTY

BIND_ADDRESS

public static final java.lang.String BIND_ADDRESS

DISABLE_MULTIPART_ATTACHMENTS

public static final java.lang.String DISABLE_MULTIPART_ATTACHMENTS

DUMP_FILE

public static final java.lang.String DUMP_FILE

MAX_SIZE

public static final java.lang.String MAX_SIZE
Constructor Detail

AbstractHttpRequest

protected AbstractHttpRequest(T config,
                              AbstractHttpOperation parent,
                              java.lang.String icon,
                              boolean forLoadTest)
Method Detail

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 AbstractHttpRequest.RequestMethod getMethod()

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)

release

public void release()
Overrides:
release in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>

getSubmitListeners

public SubmitListener[] getSubmitListeners()

getOperation

public AbstractHttpOperation getOperation()
Specified by:
getOperation in interface Request

copyAttachmentsTo

public void copyAttachmentsTo(WsdlRequest newRequest)

importAttachment

public Attachment importAttachment(Attachment attachment)

addAttachmentsChangeListener

public void addAttachmentsChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
addAttachmentsChangeListener in interface AttachmentContainer

isReadOnly

public boolean isReadOnly()

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)

isPrettyPrint

public boolean isPrettyPrint()

setPrettyPrint

public void setPrettyPrint(boolean prettyPrint)

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

getRequestHeaders

public StringToStringMap getRequestHeaders()

getIconAnimator

public AbstractHttpRequest.RequestIconAnimator<?> getIconAnimator()

setRequestHeaders

public void setRequestHeaders(StringToStringMap map)

getIcon

public javax.swing.ImageIcon getIcon()
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()

getPassword

public java.lang.String getPassword()

getDomain

public java.lang.String getDomain()

setUsername

public void setUsername(java.lang.String username)

setPassword

public void setPassword(java.lang.String password)

setDomain

public void setDomain(java.lang.String domain)

getSslKeystore

public java.lang.String getSslKeystore()

setSslKeystore

public void setSslKeystore(java.lang.String sslKeystore)

getBindAddress

public java.lang.String getBindAddress()

setBindAddress

public void setBindAddress(java.lang.String bindAddress)

getMaxSize

public long getMaxSize()

setMaxSize

public void setMaxSize(long maxSize)

getDumpFile

public java.lang.String getDumpFile()

setDumpFile

public void setDumpFile(java.lang.String df)

isRemoveEmptyContent

public boolean isRemoveEmptyContent()

setRemoveEmptyContent

public void setRemoveEmptyContent(boolean removeEmptyContent)

isStripWhitespaces

public boolean isStripWhitespaces()

setStripWhitespaces

public void setStripWhitespaces(boolean stripWhitespaces)

beforeSave

public void beforeSave()
Overrides:
beforeSave in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>

setIconAnimator

public void setIconAnimator(AbstractHttpRequest.RequestIconAnimator<?> iconAnimator)

getResponse

public HttpResponse getResponse()

setResponse

public void setResponse(HttpResponse response,
                        SubmitContext context)

resolve

public void resolve(ResolveContext context)
Overrides:
resolve in class AbstractWsdlModelItem<T extends com.eviware.soapui.config.AbstractRequestConfig>

hasEndpoint

public boolean hasEndpoint()


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