* @see asia.stampy.common.message.AbstractMessage#validate()
*/
@Override
public void validate() {
if (StringUtils.isEmpty(getHeader().getAcceptVersion())) {
throw new InvalidStompMessageException(ConnectHeader.ACCEPT_VERSION + " is required, 1.2 only");
}
if (StringUtils.isEmpty(getHeader().getHost())) {
throw new InvalidStompMessageException(ConnectHeader.HOST + " is required");
}
}