public abstract class AbstractHttpRequest<T extends AbstractRequestConfig> extends AbstractWsdlModelItem<T> implements Request, AbstractHttpRequestInterface<T>, JMSHeaderContainer, JMSPropertyContainer
Modifier and Type | Class and Description |
---|---|
static class |
AbstractHttpRequest.RequestIconAnimator<T extends AbstractHttpRequest<?>> |
Request.SubmitException
Modifier and Type | Field and Description |
---|---|
static String |
BASIC_AUTH_PROFILE |
static String |
CR_ESCAPE_SEQUENCE |
static String |
SELECTED_AUTH_PROFILE_PROPERTY_NAME |
BIND_ADDRESS, DISABLE_MULTIPART_ATTACHMENTS, DUMP_FILE, FOLLOW_REDIRECTS, log, MAX_SIZE, REMOVE_EMPTY_CONTENT, REQUEST_HEADERS_PROPERTY, RESPONSE_PROPERTY, STRIP_WHITESPACES
ENCODING_PROPERTY, ENDPOINT_PROPERTY, MEDIA_TYPE, REQUEST_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
ATTACHMENTS_PROPERTY
Modifier | Constructor and Description |
---|---|
protected |
AbstractHttpRequest(T config,
AbstractHttpOperation parent,
String icon,
boolean forLoadTest) |
afterLoad, dependsOn, getConfig, getDescription, getExternalDependencies, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dependsOn, getRequestParts, getResponseParts, submit
getChildren, getDescription, getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
getDefinedAttachmentParts, getModelItem
getJMSHeaderConfig
getJMSPropertiesConfig
public static final String BASIC_AUTH_PROFILE
public static final String SELECTED_AUTH_PROFILE_PROPERTY_NAME
public static final String CR_ESCAPE_SEQUENCE
protected AbstractHttpRequest(T config, AbstractHttpOperation parent, String icon, boolean forLoadTest)
protected List<FileAttachment<?>> getAttachmentsList()
public Attachment attachBinaryData(byte[] data, String contentType)
public Attachment attachFile(File file, boolean cache) throws IOException
attachFile
in interface MutableAttachmentContainer
IOException
public abstract RestRequestInterface.HttpMethod getMethod()
getMethod
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public abstract HttpAttachmentPart getAttachmentPart(String partName)
getAttachmentPart
in interface AttachmentContainer
AttachmentContainer.getAttachmentPart(java.lang.String)
public int getAttachmentCount()
getAttachmentCount
in interface AttachmentContainer
public Attachment getAttachmentAt(int index)
getAttachmentAt
in interface AttachmentContainer
public void setAttachmentAt(int index, Attachment attachment)
public Attachment[] getAttachmentsForPart(String partName)
getAttachmentsForPart
in interface AttachmentContainer
public void removeAttachment(Attachment attachment)
removeAttachment
in interface MutableAttachmentContainer
public Attachment[] getAttachments()
getAttachments
in interface AttachmentContainer
getAttachments
in interface Request
protected AbstractHttpRequest.RequestIconAnimator<?> initIconAnimator()
public void addSubmitListener(SubmitListener listener)
addSubmitListener
in interface Request
public void removeSubmitListener(SubmitListener listener)
removeSubmitListener
in interface Request
public boolean isMultipartEnabled()
isMultipartEnabled
in interface AttachmentContainer
public void setMultipartEnabled(boolean multipartEnabled)
setMultipartEnabled
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public boolean isEntitizeProperties()
isEntitizeProperties
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setEntitizeProperties(boolean entitizeProperties)
setEntitizeProperties
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void release()
release
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
release
in interface Releasable
release
in class AbstractWsdlModelItem<T extends AbstractRequestConfig>
public SubmitListener[] getSubmitListeners()
getSubmitListeners
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public AbstractHttpOperation getOperation()
getOperation
in interface Request
public void copyAttachmentsTo(WsdlRequest newRequest)
copyAttachmentsTo
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public Attachment importAttachment(Attachment attachment)
importAttachment
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void addAttachmentsChangeListener(PropertyChangeListener listener)
addAttachmentsChangeListener
in interface AttachmentContainer
public boolean isReadOnly()
isReadOnly
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void removeAttachmentsChangeListener(PropertyChangeListener listener)
removeAttachmentsChangeListener
in interface AttachmentContainer
public String getRequestContent()
getRequestContent
in interface Request
public void setRequestContent(String request)
setRequestContent
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public boolean isPrettyPrint()
isPrettyPrint
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setPrettyPrint(boolean prettyPrint)
setPrettyPrint
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setEndpoint(String endpoint)
setEndpoint
in interface Request
public String getEndpoint()
getEndpoint
in interface Request
public String getEncoding()
getEncoding
in interface Request
public void setEncoding(String encoding)
setEncoding
in interface Request
public String getTimeout()
getTimeout
in interface Request
public void setTimeout(String timeout)
public StringToStringsMap getRequestHeaders()
getRequestHeaders
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public AbstractHttpRequest.RequestIconAnimator<?> getIconAnimator()
getIconAnimator
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setRequestHeaders(StringToStringMap map)
map
- public void setRequestHeaders(StringToStringsMap map)
setRequestHeaders
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public ImageIcon getIcon()
getIcon
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
getIcon
in interface ModelItem
getIcon
in class AbstractWsdlModelItem<T extends AbstractRequestConfig>
public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions
in interface PropertyExpansionContainer
public String getUsername()
getUsername
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
getUsername
in interface Request
public String getPassword()
getPassword
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
getPassword
in interface Request
public String getDomain()
getDomain
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public String getSelectedAuthProfile()
public String getAuthType()
getAuthType
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
getAuthType
in interface Request
public void addBasicAuthenticationProfile(String authType)
public void removeBasicAuthenticationProfile(String authType)
public void setUsername(String username)
setUsername
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setPassword(String password)
setPassword
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setDomain(String domain)
setDomain
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setSelectedAuthProfileAndAuthType(String authProfile, CredentialsConfig.AuthType.Enum authType)
public CredentialsConfig.AuthType.Enum getBasicAuthType(String selectedProfile)
public boolean getPreemptive()
public void setPreemptive(boolean preemptive)
public String getSslKeystore()
getSslKeystore
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setSslKeystore(String sslKeystore)
setSslKeystore
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public String getBindAddress()
getBindAddress
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setBindAddress(String bindAddress)
setBindAddress
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public long getMaxSize()
getMaxSize
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setMaxSize(long maxSize)
setMaxSize
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public String getDumpFile()
getDumpFile
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setDumpFile(String df)
setDumpFile
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public boolean isRemoveEmptyContent()
isRemoveEmptyContent
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setRemoveEmptyContent(boolean removeEmptyContent)
setRemoveEmptyContent
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public boolean isStripWhitespaces()
isStripWhitespaces
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setStripWhitespaces(boolean stripWhitespaces)
setStripWhitespaces
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public boolean isFollowRedirects()
isFollowRedirects
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setFollowRedirects(boolean followRedirects)
setFollowRedirects
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void beforeSave()
beforeSave
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
beforeSave
in class AbstractWsdlModelItem<T extends AbstractRequestConfig>
public void setIconAnimator(AbstractHttpRequest.RequestIconAnimator<?> iconAnimator)
setIconAnimator
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public HttpResponse getResponse()
getResponse
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setResponse(HttpResponse response, SubmitContext context)
setResponse
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void resolve(ResolveContext<?> context)
resolve
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
resolve
in class AbstractWsdlModelItem<T extends AbstractRequestConfig>
public void addExternalDependencies(List<ExternalDependency> dependencies)
addExternalDependencies
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
addExternalDependencies
in class AbstractWsdlModelItem<T extends AbstractRequestConfig>
public boolean hasEndpoint()
hasEndpoint
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
public void setAfterRequestInjection(IAfterRequestInjection afterRequestInjection)
public IAfterRequestInjection getAfterRequestInjection()
getAfterRequestInjection
in interface AbstractHttpRequestInterface<T extends AbstractRequestConfig>
Copyright © 2019. All Rights Reserved.