de.smartics.ci.comm.command
Class CommandResult<T extends Command<T>>

Package class diagram package CommandResult
java.lang.Object
  extended by de.smartics.ci.comm.command.CommandResult<T>
Type Parameters:
T - the type of the command this is a result for.
All Implemented Interfaces:
Serializable

public final class CommandResult<T extends Command<T>>
     
     
extends Object
implements Serializable

The result of the execution of a Command.

See Also:
Serialized Form

Nested Class Summary
static class CommandResult.HttpStatus
          Provides information about the HTTP status returned by the result.
 
Constructor Summary
CommandResult(int code, CommandResult.HttpStatus httpStatus, String pageContent)
          Default constructor.
 
Method Summary
 int getCode()
          Returns the return code.
 CommandResult.HttpStatus getHttpStatus()
          Returns the information about the HTTP status returned by the result.
 String getPageContent()
          Returns the page returned on the request.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandResult

public CommandResult(int code,
                     CommandResult.HttpStatus httpStatus,
                     String pageContent)
Default constructor.

Parameters:
code - the return code.
httpStatus - the information about the HTTP status returned by the result.
pageContent - the page returned on the request.
Method Detail

getCode

public int getCode()
Returns the return code.

Returns:
the return code.

getHttpStatus

public CommandResult.HttpStatus getHttpStatus()
Returns the information about the HTTP status returned by the result.

Returns:
the information about the HTTP status returned by the result.

getPageContent

public String getPageContent()
Returns the page returned on the request. Since this may be a performance issue, this information is not collected by default. Therefore the value may be null.

Returns:
the page returned on the request.

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.