Class MessageResource

    • Constructor Detail

      • MessageResource

        public MessageResource()
    • Method Detail

      • validateUserAuthentication

        public void validateUserAuthentication​(UserPrivilegeValidation validation)
                                        throws javax.ws.rs.WebApplicationException
        User authentication is not necessary for this WEB Service. The authentication processing is used here to identify the user behind the call if possible.
        Parameters:
        validation - the validation instance to use.
        Throws:
        javax.ws.rs.WebApplicationException
        See Also:
        UserPrivilegeValidator
      • getMessageContainer

        @GET
        @Path("{registredKey}")
        @Produces("application/json")
        public MessageContainerEntity getMessageContainer​(@PathParam("registredKey")
                                                          String registredKey)
        Gets the JSON representation of message container. If it doesn't exist, a 404 HTTP code is returned. If a problem occurs when processing the request, a 503 HTTP code is returned.
        Returns:
        the response to the HTTP GET request with the JSON representation of the asked photo.