Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.wilko.jaim
Class EvilTocResponse  view EvilTocResponse download EvilTocResponse.java

java.lang.Object
  extended bycom.wilko.jaim.TocResponse
      extended bycom.wilko.jaim.EvilTocResponse
All Implemented Interfaces:
TocResponseHandler

public class EvilTocResponse
extends TocResponse
implements TocResponseHandler

An EvilTocResponse is delivered to a JaimEventListener when the signed on buddy is "eviled" or warned

Version:
$Revision: 1.6 $

Field Summary
private  boolean anonymousEvil
           
private  int evilAmount
           
private  java.lang.String evilBy
           
static java.lang.String RESPONSE_TYPE
           
 
Fields inherited from class com.wilko.jaim.TocResponse
cmd
 
Constructor Summary
EvilTocResponse()
          Creates new EvilTocResponse
 
Method Summary
 boolean canHandle(java.lang.String Response)
          Returns true if this response handler can handle the specified response.
private  void doParse(java.lang.String str)
           
 int getEvilAmount()
          Get the evil amount from this response.
 java.lang.String getEvilBy()
          Obtain the name of the buddy that issued the warning.
 java.lang.String getResponseType()
          Used by the response dispatcher
 boolean isAnonymous()
          Obtain the anonymous status of this warning
 TocResponse parseString(java.lang.String str)
          Parse the evil message from the TOC server
 
Methods inherited from class com.wilko.jaim.TocResponse
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

anonymousEvil

private boolean anonymousEvil

evilAmount

private int evilAmount

evilBy

private java.lang.String evilBy

RESPONSE_TYPE

public static final java.lang.String RESPONSE_TYPE
See Also:
Constant Field Values
Constructor Detail

EvilTocResponse

public EvilTocResponse()
Creates new EvilTocResponse

Method Detail

parseString

public TocResponse parseString(java.lang.String str)
Parse the evil message from the TOC server

Specified by:
parseString in interface TocResponseHandler

doParse

private void doParse(java.lang.String str)

getEvilAmount

public int getEvilAmount()
Get the evil amount from this response. This is the current evil or warning level for the authenticated buddy, not the increment specified by the last warning


getEvilBy

public java.lang.String getEvilBy()
Obtain the name of the buddy that issued the warning.


isAnonymous

public boolean isAnonymous()
Obtain the anonymous status of this warning


getResponseType

public java.lang.String getResponseType()
Used by the response dispatcher

Specified by:
getResponseType in class TocResponse

canHandle

public boolean canHandle(java.lang.String Response)
Returns true if this response handler can handle the specified response.

Specified by:
canHandle in interface TocResponseHandler