Commit 1718edd9 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Replaced "notallowed" with "forbidden".


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1682 b35dd754-fafc-0310-a699-88a17e54d16e
parent 55ebf64c
...@@ -34,17 +34,16 @@ import java.util.Map; ...@@ -34,17 +34,16 @@ import java.util.Map;
* --IMAGE-- token. The --IMAGE-- token would be filtered and would be replaced with * --IMAGE-- token. The --IMAGE-- token would be filtered and would be replaced with
* codes like "dnd", "offline", "away", etc.</li> * codes like "dnd", "offline", "away", etc.</li>
* <li>Use a parameter for each possible presence type - Possible parameters are: <b>offline</b>, * <li>Use a parameter for each possible presence type - Possible parameters are: <b>offline</b>,
* <b>available</b>, <b>away</b>, <b>chat</b>, <b>dnd</b>, <b>xa</b>. If the parameter was * <b>available</b>, <b>away</b>, <b>chat</b>, <b>dnd</b>, <b>xa</b> and <b>forbidden</b>. If
* not passed then the default image will be used.</li> * the parameter was not passed then the default image will be used.</li>
* <li>Do not pass any parameter - When no parameter was passed the default images will be * <li>Do not pass any parameter - When no parameter was passed the default images will be
* used.</li> * used.</li>
* </ul> * </ul>
* *
* If the required user was not found or the user making the request is not allowed to see the * If the required user was not found or the user making the request is not allowed to see the
* user presence then the image specified in the <b>notallowed</b> parameter will be used. * user presence then the image specified in the <b>forbidden</b> parameter will be used.
* However, if the request does not include the <b>notallowed</b> parameter then the default * However, if the request does not include the <b>forbidden</b> parameter then the default
* image for user offline will be used. Therefore, each request <b>MUST</b> include the * image for user offline will be used.
* <b>notallowed</b> parameter.
* *
* @author Gaston Dombiak * @author Gaston Dombiak
* *
...@@ -83,7 +82,7 @@ class ImagePresenceProvider extends PresenceInfoProvider { ...@@ -83,7 +82,7 @@ class ImagePresenceProvider extends PresenceInfoProvider {
public void sendUserNotFound(HttpServletRequest request, HttpServletResponse response) public void sendUserNotFound(HttpServletRequest request, HttpServletResponse response)
throws IOException { throws IOException {
writeImageContent(request.getParameter("notallowed"), servlet.offline, response); writeImageContent(request, response, "forbidden", servlet.offline);
} }
private void writeImageContent(HttpServletRequest request, HttpServletResponse response, private void writeImageContent(HttpServletRequest request, HttpServletResponse response,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment