Noel,

Three corrections to AbstractRedirect:
1) was (watch the "r\n\r\n" --> "\r\n\r\n")
                            new StringBuffer(1024)
                                .append(head)
                                .append("r\n\r\n")
                                .append(getMessageBody(message));
now becomes
                            new StringBuffer(1024)
                                .append(head)
                                .append("\r\n")
                                .append("Message:\r\n")
                                .append(getMessageBody(message));

2) was
            // check if is an allowed special
            boolean allowed = false;
            for (int i = 0; i <= allowedSpecials.length; i++) {
                String allowedSpecial = allowedSpecials[i];
now becomes
            // check if is an allowed special
            boolean allowed = false;
            for (int i = 0; i < allowedSpecials.length; i++) {
                String allowedSpecial = allowedSpecials[i];

3) was
    /**
     * Utility method for obtaining a string representation of an array of Objects.
     */
    private String arrayToString(Object[] array) {
        StringBuffer sb = new StringBuffer(1024);
        sb.append("[");
        for (int i = 0; i < array.length; i++) {
            sb.append(array[i]);
        }
        sb.append("]");
        return sb.toString();
    }
now becomes
    /**
     * Utility method for obtaining a string representation of an array of Objects.
     */
    private String arrayToString(Object[] array) {
        StringBuffer sb = new StringBuffer(1024);
        sb.append("[");
        for (int i = 0; i < array.length; i++) {
            if (i > 0) {
                sb.append(",");
            }
            sb.append(array[i]);
        }
        sb.append("]");
        return sb.toString();
    }

Vincenzo

Attachment: AbstractRedirect.zip
Description: Macintosh archive

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to