src/net/java/otr4j/OtrEngine.java
changeset 911 ca323cff3ac9
parent 906 0ff0059f2ec3
equal deleted inserted replaced
910:2ef1c6096069 911:ca323cff3ac9
    17 	 * @param sessionID
    17 	 * @param sessionID
    18 	 *            The session identifier.
    18 	 *            The session identifier.
    19 	 * @param content
    19 	 * @param content
    20 	 *            The message content to be transformed.
    20 	 *            The message content to be transformed.
    21 	 * @return The transformed message content.
    21 	 * @return The transformed message content.
       
    22 	 * @throws OtrException 
    22 	 */
    23 	 */
    23 	public abstract String transformReceiving(SessionID sessionID,
    24 	public abstract String transformReceiving(SessionID sessionID,
    24 			String content);
    25 			String content) throws OtrException;
    25 
    26 
    26 	/**
    27 	/**
    27 	 * 
    28 	 * 
    28 	 * @param sessionID
    29 	 * @param sessionID
    29 	 *            The session identifier.
    30 	 *            The session identifier.
    30 	 * @param content
    31 	 * @param content
    31 	 *            The message content to be transformed.
    32 	 *            The message content to be transformed.
    32 	 * @return The transformed message content.
    33 	 * @return The transformed message content.
       
    34 	 * @throws OtrException 
    33 	 */
    35 	 */
    34 	public abstract String transformSending(SessionID sessionID, String content);
    36 	public abstract String transformSending(SessionID sessionID, String content) throws OtrException;
    35 
    37 
    36 	/**
    38 	/**
    37 	 * Starts an Off-the-Record session, if there is no active one.
    39 	 * Starts an Off-the-Record session, if there is no active one.
    38 	 * 
    40 	 * 
    39 	 * @param sessionID
    41 	 * @param sessionID
    40 	 *            The session identifier.
    42 	 *            The session identifier.
       
    43 	 * @throws OtrException 
    41 	 */
    44 	 */
    42 	public abstract void startSession(SessionID sessionID);
    45 	public abstract void startSession(SessionID sessionID) throws OtrException;
    43 
    46 
    44 	/**
    47 	/**
    45 	 * Ends the Off-the-Record session, if exists.
    48 	 * Ends the Off-the-Record session, if exists.
    46 	 * 
    49 	 * 
    47 	 * @param sessionID
    50 	 * @param sessionID
    48 	 *            The session identifier.
    51 	 *            The session identifier.
       
    52 	 * @throws OtrException 
    49 	 */
    53 	 */
    50 	public abstract void endSession(SessionID sessionID);
    54 	public abstract void endSession(SessionID sessionID) throws OtrException;
    51 
    55 
    52 	/**
    56 	/**
    53 	 * Stops/Starts the Off-the-Record session.
    57 	 * Stops/Starts the Off-the-Record session.
    54 	 * 
    58 	 * 
    55 	 * @param sessionID
    59 	 * @param sessionID
    56 	 *            The session identifier.
    60 	 *            The session identifier.
       
    61 	 * @throws OtrException 
    57 	 */
    62 	 */
    58 	public abstract void refreshSession(SessionID sessionID);
    63 	public abstract void refreshSession(SessionID sessionID) throws OtrException;
    59 
    64 
    60 	/**
    65 	/**
    61 	 * 
    66 	 * 
    62 	 * @param sessionID
    67 	 * @param sessionID
    63 	 *            The session identifier.
    68 	 *            The session identifier.