Class UserAvatar
java.lang.Object
com.xwiki.projectmanagement.openproject.model.UserAvatar
Models the response of a UserAvatar coming from Open Project.
- Since:
- 1.0-rc-5
- Version:
- $Id$
-
Constructor Summary
ConstructorsConstructorDescriptionUserAvatar(javax.ws.rs.core.StreamingOutput streamingOutput, String contentType) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.StreamingOutputvoidsetContentType(String contentType) voidsetStreamingOutput(javax.ws.rs.core.StreamingOutput streamingOutput)
-
Constructor Details
-
UserAvatar
- Parameters:
streamingOutput- the streaming output where he file can be read.contentType- the type of file that is being read through the stream.
-
-
Method Details
-
getContentType
- Returns:
- the content type of the stream.
-
setContentType
- Parameters:
contentType- seegetContentType().
-
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- seegetStreamingOutput().
-