public class Meta extends Object
| Constructor and Description |
|---|
Meta(Element metaElement)
Creates a Meta component from the specified meta Element.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
follow(UserAgent userAgent,
int redirectCount)
Directs the UserAgent to follow the redirection of this meta, or does nothing if this meta does not redirect.
|
Element |
getElement()
Retrieves the meta Element for this meta component.
|
long |
getRedirectDelay()
Returns the delay (in seconds) before the meta redirects , or -1 if no delay is specified.
|
String |
getRedirectUrl()
Returns the url to which the meta tag redirects, or null if it does not redirect.
|
boolean |
redirects()
Whether the meta tag performs a redirection.
|
public Element element
public Meta(Element metaElement)
public Element getElement()
public boolean redirects()
public String getRedirectUrl()
public long getRedirectDelay()
public Document follow(UserAgent userAgent, int redirectCount) throws ResponseException
userAgent - the userAgent that will be used to follow the redirect.redirectCount - the number of previous consecutive redirections.ResponseException