Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.nntp
Class StaticNNTPResponse

java.lang.Object
  extended by com.jivesoftware.forum.nntp.StaticNNTPResponse
All Implemented Interfaces:
NNTPResponse
Direct Known Subclasses:
NewsGroupSelectedResponse, NNTPDateResponse

public class StaticNNTPResponse
extends java.lang.Object
implements NNTPResponse

Represents generic static responses for NNTP commands.

NNTP static responses have an integer response code and a text response.


Field Summary
 
Fields inherited from interface com.jivesoftware.forum.nntp.NNTPResponse
DOT_TERMINATOR, ENDLINE
 
Constructor Summary
StaticNNTPResponse(int val, java.lang.String staticText)
          Create a simple NNTP response with a static text body and response value.
 
Method Summary
 int getValue()
          Returns the int value associated with the response.
 void send(Connection con)
          Sends the response.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticNNTPResponse

public StaticNNTPResponse(int val,
                          java.lang.String staticText)
Create a simple NNTP response with a static text body and response value.

Parameters:
staticText - the static static text for the response.
val - the response code.
Method Detail

getValue

public int getValue()
Description copied from interface: NNTPResponse
Returns the int value associated with the response.

Specified by:
getValue in interface NNTPResponse
Returns:
the int value of the enum.

send

public void send(Connection con)
          throws java.io.IOException
Description copied from interface: NNTPResponse

Sends the response.

Specified by:
send in interface NNTPResponse
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.