|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.web.action.SafeRedirectChecker
public class SafeRedirectChecker
Contains methods that check whether a particular redirect is "safe" or not.
| Constructor Summary | |
|---|---|
SafeRedirectChecker(VelocityRequestContextFactory velocityRequestContextFactory)
Creates a new SafeRedirectChecker |
|
| Method Summary | |
|---|---|
boolean |
canRedirectTo(String redirectUri)
Returns a boolean indicating whether redirecting to the given URI is allowed or not. |
protected String |
getCanonicalBaseURL()
Returns the canonical base URL for JIRA. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SafeRedirectChecker(VelocityRequestContextFactory velocityRequestContextFactory)
velocityRequestContextFactory - a VelocityRequestContextFactory| Method Detail |
|---|
public boolean canRedirectTo(String redirectUri)
redirectUri is an absolute URI and it points to a domain that is not this JIRA instance's
domain, and true otherwise.
redirectUri - a String containing a URI
protected String getCanonicalBaseURL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||