com.sun.grizzly.filter
Class MessageError

java.lang.Object
  extended by com.sun.grizzly.filter.MessageBase
      extended by com.sun.grizzly.filter.MessageError
All Implemented Interfaces:
Message

public class MessageError
extends MessageBase

Used to signal Errors which happen in the Protocol Layer. Errors can happen either on Client or Server Protocol Layer side.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.grizzly.filter.Message
Message.ErrorCode
 
Field Summary
 
Fields inherited from class com.sun.grizzly.filter.MessageBase
flags, messageType, requestId, sessionId, uniqueMessageId, useGzip
 
Fields inherited from interface com.sun.grizzly.filter.Message
APPLICATION_LAYER_ERROR_BIT, CurrentVersion, GZIP_BIT, HeaderLength, Magic, MagicByteLength, Message_Error, Message_Fragment, Message_Reply, Message_Request, MessageMaxLength, MORE_FRAGMENTS_BIT
 
Constructor Summary
MessageError()
           
MessageError(String message, Message.ErrorCode code)
           
 
Method Summary
 Message.ErrorCode getErrorCode()
           
 String getMessage()
           
 boolean isErrorHappendHere()
           
 void setErrorCode(Message.ErrorCode errorCode)
           
 void setErrorHappendHere(boolean errorHappendHere)
           
 void setMessage(String message)
           
 
Methods inherited from class com.sun.grizzly.filter.MessageBase
checkMagic, getMessageSize, getMessageType, getNeededBytesSize, getRequestId, getSessionId, getUniqueMessageId, isApplicationLayerException, isClean, isError, isGzip, moreFragmentsToFollow, parseHeader, setMessageType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageError

public MessageError()

MessageError

public MessageError(String message,
                    Message.ErrorCode code)
Method Detail

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

getErrorCode

public Message.ErrorCode getErrorCode()

setErrorCode

public void setErrorCode(Message.ErrorCode errorCode)

isErrorHappendHere

public boolean isErrorHappendHere()
Returns:
errorHappendHere true if error occured here

setErrorHappendHere

public void setErrorHappendHere(boolean errorHappendHere)
Parameters:
errorHappendHere - if true error occured while parsing message on this side.


Copyright © 2012 Oracle Corporation. All Rights Reserved.