jerklib
Class WriteRequest

java.lang.Object
  extended by jerklib.WriteRequest

public class WriteRequest
extends Object

WriteRequest - this is sent to a Connection whenever a 'write' needs to happen. There are 3 types of WriteRequests. PRIV_MSG , DIRECT_MSG , RAW_MSG (from the Type enum). RAW_MSG is used when you need direct access to the IRC stream , else PRIV_MSG or DIRECT_MSG should be used.

Author:
mohadib

Nested Class Summary
static class WriteRequest.Type
          Type enum is used to determine type.
 
Method Summary
 Channel getChannel()
          Get Channel associated with the request.
 String getMessage()
          Get message part of request
 String getNick()
          Get the nick used for this request
 Session getSession()
          Return the Session
 WriteRequest.Type getType()
          Type of request
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public WriteRequest.Type getType()
Type of request

Returns:
type

getMessage

public String getMessage()
Get message part of request

Returns:
message

getChannel

public Channel getChannel()
Get Channel associated with the request. If no channel null will be returned;

Returns:
channel or null if no channel for request

getNick

public String getNick()
Get the nick used for this request

Returns:
nick

getSession

public Session getSession()
Return the Session

Returns:
Session