Class UserAvatar
- java.lang.Object
-
- com.xwiki.projectmanagement.openproject.model.UserAvatar
-
public class UserAvatar extends Object
Models the response of a UserAvatar coming from Open Project.- Since:
- 1.0-rc-5
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description UserAvatar(javax.ws.rs.core.StreamingOutput streamingOutput, String contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()javax.ws.rs.core.StreamingOutputgetStreamingOutput()voidsetContentType(String contentType)voidsetStreamingOutput(javax.ws.rs.core.StreamingOutput streamingOutput)
-
-
-
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- 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().
-
-