com.pyxis.greenhopper.gadget
Class AbstractResource

java.lang.Object
  extended by com.pyxis.greenhopper.gadget.AbstractResource
Direct Known Subclasses:
CardViewGadgetResource, ChartDataResource, ContextResource, GreenHopperRessource, ProgressBarGadgetResource, TaskBoardGadgetResource, TBMappingResource, VersionBoardResource, WatchedFieldsResource

public abstract class AbstractResource
extends java.lang.Object

Parent class of all resource classes. Provides helper methods to return error and validation responses


Field Summary
static java.lang.String PROJECT_PREFIX
           
 
Constructor Summary
AbstractResource()
           
 
Method Summary
protected  javax.ws.rs.core.Response createErrorResponse(java.util.Collection<ValidationError> errors)
           
protected  javax.ws.rs.core.Response createIndexingUnavailableResponse(java.lang.String message)
           
protected  javax.ws.rs.core.Response createValidationResponse(java.util.Collection<ValidationError> errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_PREFIX

public static final java.lang.String PROJECT_PREFIX
See Also:
Constant Field Values
Constructor Detail

AbstractResource

public AbstractResource()
Method Detail

createErrorResponse

protected javax.ws.rs.core.Response createErrorResponse(java.util.Collection<ValidationError> errors)

createIndexingUnavailableResponse

protected javax.ws.rs.core.Response createIndexingUnavailableResponse(java.lang.String message)

createValidationResponse

protected javax.ws.rs.core.Response createValidationResponse(java.util.Collection<ValidationError> errors)


Copyright © 2007-2011 Atlassian. All Rights Reserved.