com.atlassian.jira.rest.v2.issue
Class AttachmentBeanBuilder

java.lang.Object
  extended by com.atlassian.jira.rest.v2.issue.AttachmentBeanBuilder

public class AttachmentBeanBuilder
extends Object

Builder for AttachmentBean instances.

Since:
v4.2

Constructor Summary
AttachmentBeanBuilder(URI baseUri, UserManager userManager, ThumbnailManager thumbnailManager, Attachment attachment)
          Creates a new AttachmentBeanBuilder.
 
Method Summary
 AttachmentBean build()
          Builds a new AttachmentBean.
 AttachmentBeanBuilder context(javax.ws.rs.core.UriInfo context)
          Sets the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentBeanBuilder

public AttachmentBeanBuilder(URI baseUri,
                             UserManager userManager,
                             ThumbnailManager thumbnailManager,
                             Attachment attachment)
Creates a new AttachmentBeanBuilder.

Parameters:
baseUri - a URI containing the JIRA base URI
userManager - a UserManager
thumbnailManager - a ThumbnailManager
attachment - an Attachment
Method Detail

context

public AttachmentBeanBuilder context(javax.ws.rs.core.UriInfo context)
Sets the context.

Parameters:
context - a UriInfo
Returns:
this

build

public AttachmentBean build()
                     throws IllegalStateException
Builds a new AttachmentBean.

Returns:
a new AttachmentBean instance
Throws:
IllegalStateException - if any of this builder's properties is not set


Copyright © 2002-2013 Atlassian. All Rights Reserved.