public class Post
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
action |
java.lang.String |
additionalRequest |
int |
autoSubmittedForms |
static int |
DEFAULT_AUTO_SUBMITTED_FORMS |
java.lang.String |
formClass |
java.lang.String |
formId |
java.lang.String |
formName |
java.lang.String |
gatewayUrl |
java.util.List<KeyValue> |
keyValue |
java.lang.String |
method |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Post.
|
static Post |
fromString(java.lang.String s)
String representation of this Post.
|
java.lang.String |
getAction() |
java.lang.String |
getAdditionalRequest()
An additional URL to fetch after the HTML form authentication procedure,
following all redirections to allow new cookies. Useful for some SSO including google sites. |
int |
getAutoSubmittedForms()
How many times to try to find and submit a form after the login procedure.
This is needed to get cookies for other domains in some SSOs. |
java.lang.String |
getFormClass() |
java.lang.String |
getFormId()
if there are more than one form on the gateway Url, a formName
formId and/or a formClass can be specified to find the right one. |
java.lang.String |
getFormName() |
java.lang.String |
getGatewayUrl() |
java.util.List<KeyValue> |
getKeyValue() |
java.lang.String |
getMethod()
when method or action are not null, they override the ones found in the
form. when gatewayUrl is null, just use them. gatewayUrl, method and action must not all be null. |
Post |
makeCopy()
Creates and returns a deep copy of this Post.
|
static Post |
readFrom(java.io.InputStream is)
Read this Post from an XML fragment.
|
void |
setAction(java.lang.String action) |
void |
setAdditionalRequest(java.lang.String additionalRequest)
An additional URL to fetch after the HTML form authentication procedure,
following all redirections to allow new cookies. Useful for some SSO including google sites. |
void |
setAutoSubmittedForms(int autoSubmittedForms)
How many times to try to find and submit a form after the login procedure.
This is needed to get cookies for other domains in some SSOs. |
void |
setFormClass(java.lang.String formClass) |
void |
setFormId(java.lang.String formId)
if there are more than one form on the gateway Url, a formName
formId and/or a formClass can be specified to find the right one. |
void |
setFormName(java.lang.String formName) |
void |
setGatewayUrl(java.lang.String gatewayUrl) |
void |
setMethod(java.lang.String method)
when method or action are not null, they override the ones found in the
form. when gatewayUrl is null, just use them. gatewayUrl, method and action must not all be null. |
java.lang.String |
toString()
String representation of this Post.
|
Post |
withAction(java.lang.String action) |
Post |
withAdditionalRequest(java.lang.String additionalRequest) |
Post |
withAutoSubmittedForms(int autoSubmittedForms) |
Post |
withAutoSubmittedForms(java.lang.Integer autoSubmittedForms) |
Post |
withFormClass(java.lang.String formClass) |
Post |
withFormId(java.lang.String formId) |
Post |
withFormName(java.lang.String formName) |
Post |
withGatewayUrl(java.lang.String gatewayUrl) |
Post |
withKeyValue(java.util.Collection<KeyValue> __values) |
Post |
withKeyValue(KeyValue... __values) |
Post |
withMethod(java.lang.String method) |
void |
writeTo(java.io.OutputStream os)
Write this Post as an XML fragment
|
public java.util.List<KeyValue> keyValue
public java.lang.String gatewayUrl
public java.lang.String formId
public java.lang.String formClass
public java.lang.String formName
public java.lang.String method
public java.lang.String action
public int autoSubmittedForms
public static final int DEFAULT_AUTO_SUBMITTED_FORMS
public java.lang.String additionalRequest
public Post()
public Post(Post o)
public java.util.List<KeyValue> getKeyValue()
public void setGatewayUrl(java.lang.String gatewayUrl)
public java.lang.String getGatewayUrl()
public Post withGatewayUrl(java.lang.String gatewayUrl)
public void setFormId(java.lang.String formId)
public java.lang.String getFormId()
public Post withFormId(java.lang.String formId)
public void setFormClass(java.lang.String formClass)
public java.lang.String getFormClass()
public Post withFormClass(java.lang.String formClass)
public void setFormName(java.lang.String formName)
public java.lang.String getFormName()
public Post withFormName(java.lang.String formName)
public void setMethod(java.lang.String method)
public java.lang.String getMethod()
public Post withMethod(java.lang.String method)
public void setAction(java.lang.String action)
public java.lang.String getAction()
public Post withAction(java.lang.String action)
public void setAutoSubmittedForms(int autoSubmittedForms)
public int getAutoSubmittedForms()
public Post withAutoSubmittedForms(int autoSubmittedForms)
public Post withAutoSubmittedForms(java.lang.Integer autoSubmittedForms)
public void setAdditionalRequest(java.lang.String additionalRequest)
public java.lang.String getAdditionalRequest()
public Post withAdditionalRequest(java.lang.String additionalRequest)
public Post makeCopy()
public static Post readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Post fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.