|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.nntp.StaticNNTPResponse
public class StaticNNTPResponse
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 |
|---|
public StaticNNTPResponse(int val,
java.lang.String staticText)
staticText - the static static text for the response.val - the response code.| Method Detail |
|---|
public int getValue()
NNTPResponse
getValue in interface NNTPResponse
public void send(Connection con)
throws java.io.IOException
NNTPResponseSends the response.
send in interface NNTPResponsejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||