jbpm-form-modeler-request-dispatcher 6.0.0.CR4-Pre1

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

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

public class SendErrorResponse
extends Object
implements CommandResponse

Sends a error code response as a error


Constructor Summary
SendErrorResponse(int errorCode)
          Constructor
SendErrorResponse(String errorCode)
          Constructor
 
Method Summary
 boolean execute(CommandRequest cmdReq)
          Executes this response object.
 String toString()
          toString implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SendErrorResponse

public SendErrorResponse(int errorCode)
Constructor


SendErrorResponse

public SendErrorResponse(String errorCode)
Constructor

Method Detail

execute

public boolean execute(CommandRequest cmdReq)
                throws Exception
Executes this response object. It typically will be one of the response types that are provided.

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

toString

public String toString()
toString implementation

Overrides:
toString in class Object

jbpm-form-modeler-request-dispatcher 6.0.0.CR4-Pre1

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