public class RedirectToURLResponse extends Object implements CommandResponse
Constructor and Description |
---|
RedirectToURLResponse(String newURL) |
RedirectToURLResponse(String newURL,
boolean relative) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(CommandRequest cmdReq)
Execute
|
String |
getURL()
Returns the URL
|
boolean |
isRelative() |
protected String |
normalize(String url,
CommandRequest cmdReq,
boolean relative) |
String |
toString()
toString implementation
|
public RedirectToURLResponse(String newURL, boolean relative)
public RedirectToURLResponse(String newURL)
public boolean execute(CommandRequest cmdReq) throws Exception
execute
in interface CommandResponse
cmdReq
- Object encapsulating the request information.Exception
protected String normalize(String url, CommandRequest cmdReq, boolean relative)
public String getURL()
public boolean isRelative()
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.