com.atlassian.jira.pageobjects.xsrf
Class XsrfPage

java.lang.Object
  extended by com.atlassian.jira.pageobjects.xsrf.XsrfPage
All Implemented Interfaces:
Xsrf, com.atlassian.pageobjects.Page

public class XsrfPage
extends Object
implements Xsrf, com.atlassian.pageobjects.Page

Represents the XSRF page. This is a page that can appear anywhere because of our XSRF magic. Because of this it is not really a page.

Since:
v5.0.1

Constructor Summary
XsrfPage()
           
XsrfPage(String urlToVisit)
          Use this constructor when you need JIRA to follow a link which should take you to xsrf error page.
 
Method Summary
 boolean canRetry()
           
 String getUrl()
           
 boolean hasParamaters()
           
 void init()
           
 boolean isSessionExpired()
           
 boolean isXsrfCheckFailed()
           
 JiraLoginPage login()
           
<P> P
retry(Class<P> page, Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsrfPage

public XsrfPage(String urlToVisit)
Use this constructor when you need JIRA to follow a link which should take you to xsrf error page. This method will be much quicker than to fail to bind a different page.

Parameters:
urlToVisit -

XsrfPage

public XsrfPage()
Method Detail

init

public void init()

isSessionExpired

public boolean isSessionExpired()
Specified by:
isSessionExpired in interface Xsrf

isXsrfCheckFailed

public boolean isXsrfCheckFailed()
Specified by:
isXsrfCheckFailed in interface Xsrf

hasParamaters

public boolean hasParamaters()
Specified by:
hasParamaters in interface Xsrf

canRetry

public boolean canRetry()
Specified by:
canRetry in interface Xsrf

retry

public <P> P retry(Class<P> page,
                   Object... args)
Specified by:
retry in interface Xsrf

login

public JiraLoginPage login()
Specified by:
login in interface Xsrf

getUrl

public String getUrl()
Specified by:
getUrl in interface com.atlassian.pageobjects.Page


Copyright © 2002-2014 Atlassian. All Rights Reserved.