com.heroku.api.request.app
Class AppExists

java.lang.Object
  extended by com.heroku.api.request.RequestTransformation<App,Boolean>
      extended by com.heroku.api.request.app.AppExists
All Implemented Interfaces:
Request<Boolean>

public class AppExists
extends RequestTransformation<App,Boolean>

Determines if an app with a given name exists on Heroku. A true response does not necessarily indicate the user has access to the app.

Author:
Ryan Brainard

Constructor Summary
AppExists(String name)
           
 
Method Summary
 Boolean getResponse(byte[] data, int code)
          Response handler.
 
Methods inherited from class com.heroku.api.request.RequestTransformation
getBody, getEndpoint, getHeaders, getHttpMethod, getResponseType, hasBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppExists

public AppExists(String name)
Method Detail

getResponse

public Boolean getResponse(byte[] data,
                           int code)
Description copied from interface: Request
Response handler.

Specified by:
getResponse in interface Request<Boolean>
Specified by:
getResponse in class RequestTransformation<App,Boolean>
Parameters:
data - Data returned from the request.
code - HTTP status code.
Returns:
The type T as specified by an individual request.


Copyright © 2012. All Rights Reserved.