de.smartics.ci.comm.command
Class CommandResult.HttpStatus

Package class diagram package CommandResult.HttpStatus
java.lang.Object
  extended by de.smartics.ci.comm.command.CommandResult.HttpStatus
All Implemented Interfaces:
Serializable
Enclosing class:
CommandResult< T extends Command< T>>

public static final class CommandResult.HttpStatus
     
     
extends Object
implements Serializable

Provides information about the HTTP status returned by the result.

See Also:
Serialized Form

Field Summary
static int OK
          HTTP-status OK.
 
Constructor Summary
CommandResult.HttpStatus(int code, String text)
          Default constructor.
 
Method Summary
 int getCode()
          Returns the HTTP status code of the result.
 String getText()
          Returns the HTTP status text of the result.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OK

public static final int OK
HTTP-status OK.

Constant Field Value:
200
Constructor Detail

CommandResult.HttpStatus

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

Parameters:
code - the HTTP status code of the result.
text - the HTTP status text of the result.
Method Detail

getCode

public int getCode()
Returns the HTTP status code of the result.

Returns:
the HTTP status code of the result.

getText

public String getText()
Returns the HTTP status text of the result.

Returns:
the HTTP status text of the result.

toString

public String toString()

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


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