Search in sources :

Example 6 with IllegalWriteException

use of org.eclipse.ecf.bulletinboard.IllegalWriteException in project ecf by eclipse.

the class Thread method createReplyMessage.

public IThreadMessage createReplyMessage() throws IllegalWriteException {
    if ((mode & READ_ONLY) == READ_ONLY) {
        throw new IllegalWriteException(E_READ_ONLY);
    }
    ThreadMessage msg = new ThreadMessage();
    msg.setBulletinBoard(bb);
    msg.setThread(this);
    return msg;
}
Also used : IllegalWriteException(org.eclipse.ecf.bulletinboard.IllegalWriteException) IThreadMessage(org.eclipse.ecf.bulletinboard.IThreadMessage)

Aggregations

IllegalWriteException (org.eclipse.ecf.bulletinboard.IllegalWriteException)6 IThreadMessage (org.eclipse.ecf.bulletinboard.IThreadMessage)4 IOException (java.io.IOException)3 NameValuePair (org.apache.commons.httpclient.NameValuePair)3 PostRequest (org.eclipse.ecf.internal.bulletinboard.commons.webapp.PostRequest)3 Matcher (java.util.regex.Matcher)2 IDCreateException (org.eclipse.ecf.core.identity.IDCreateException)2 Header (org.apache.commons.httpclient.Header)1 BBException (org.eclipse.ecf.bulletinboard.BBException)1 IThread (org.eclipse.ecf.bulletinboard.IThread)1 WebRequest (org.eclipse.ecf.internal.bulletinboard.commons.webapp.WebRequest)1 ThreadMessageFactory (org.eclipse.ecf.internal.provider.vbulletin.internal.ThreadMessageFactory)1