jbpm-form-modeler-request-dispatcher 6.2.0.Final

org.jbpm.formModeler.service.bb.mvc.controller.responses
Class RedirectToURLResponse

java.lang.Object
  extended by org.jbpm.formModeler.service.bb.mvc.controller.responses.RedirectToURLResponse
All Implemented Interfaces:
Serializable, CommandResponse

public class RedirectToURLResponse
extends Object
implements CommandResponse

Sends a redirect to an arbitrary URL.

See Also:
Serialized Form

Constructor Summary
RedirectToURLResponse(String newURL)
           
RedirectToURLResponse(String newURL, boolean relative)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedirectToURLResponse

public RedirectToURLResponse(String newURL,
                             boolean relative)

RedirectToURLResponse

public RedirectToURLResponse(String newURL)
Method Detail

execute

public boolean execute(CommandRequest cmdReq)
                throws Exception
Execute

Specified by:
execute in interface CommandResponse
Parameters:
cmdReq - Object encapsulating the request information.
Returns:
boolean if the execution has been successfully executed, false otherwise.
Throws:
Exception

normalize

protected String normalize(String url,
                           CommandRequest cmdReq,
                           boolean relative)

getURL

public String getURL()
Returns the URL


isRelative

public boolean isRelative()

toString

public String toString()
toString implementation

Overrides:
toString in class Object

jbpm-form-modeler-request-dispatcher 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.