com.sun.grizzly
Class TransformationResult<T>

java.lang.Object
  extended by com.sun.grizzly.TransformationResult<T>

public class TransformationResult<T>
extends Object

Represents the result of message encoding/decoding.

Author:
Alexey Stashok

Nested Class Summary
static class TransformationResult.Status
           
 
Constructor Summary
TransformationResult()
           
TransformationResult(int errorCode, String errorDescription)
          Creates error transformation result with specific code and description.
TransformationResult(TransformationResult.Status status)
           
TransformationResult(TransformationResult.Status status, T message)
           
 
Method Summary
 int getErrorCode()
           
 String getErrorDescription()
           
 T getMessage()
           
 TransformationResult.Status getStatus()
           
 void setErrorCode(int errorCode)
           
 void setErrorDescription(String errorDescription)
           
 void setMessage(T message)
           
 void setStatus(TransformationResult.Status status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransformationResult

public TransformationResult()

TransformationResult

public TransformationResult(TransformationResult.Status status)

TransformationResult

public TransformationResult(TransformationResult.Status status,
                            T message)

TransformationResult

public TransformationResult(int errorCode,
                            String errorDescription)
Creates error transformation result with specific code and description.

Parameters:
errorId - id of the error
errorDescription - error description
Method Detail

getMessage

public T getMessage()

setMessage

public void setMessage(T message)

getStatus

public TransformationResult.Status getStatus()

setStatus

public void setStatus(TransformationResult.Status status)

getErrorCode

public int getErrorCode()

setErrorCode

public void setErrorCode(int errorCode)

getErrorDescription

public String getErrorDescription()

setErrorDescription

public void setErrorDescription(String errorDescription)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 SUN Microsystems. All Rights Reserved.