org.glassfish.grizzly
Class TransformationResult<T>
java.lang.Object
org.glassfish.grizzly.TransformationResult<T>
public class TransformationResult<T>
- extends Object
Represents the result of message encoding/decoding.
- Author:
- Alexey Stashok
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 errorerrorDescription - error description
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.