Class UserAvatar


  • public class UserAvatar
    extends Object
    Models the response of a UserAvatar coming from Open Project.
    Since:
    1.0-rc-5
    Version:
    $Id$
    • Constructor Detail

      • UserAvatar

        public UserAvatar​(javax.ws.rs.core.StreamingOutput streamingOutput,
                          String contentType)
        Parameters:
        streamingOutput - the streaming output where he file can be read.
        contentType - the type of file that is being read through the stream.
    • Method Detail

      • getContentType

        public String getContentType()
        Returns:
        the content type of the stream.
      • setContentType

        public void setContentType​(String contentType)
        Parameters:
        contentType - see getContentType().
      • getStreamingOutput

        public javax.ws.rs.core.StreamingOutput getStreamingOutput()
        Returns:
        the stream where the avatar can be read.
      • setStreamingOutput

        public void setStreamingOutput​(javax.ws.rs.core.StreamingOutput streamingOutput)
        Parameters:
        streamingOutput - see getStreamingOutput().