com.sun.grizzly.filter
Class MessageError
java.lang.Object
com.sun.grizzly.filter.MessageBase
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.
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 |
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 |
MessageError
public MessageError()
MessageError
public MessageError(String message,
Message.ErrorCode code)
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.