Class LookupItemsController
- java.lang.Object
-
- org.jenkinsci.plugins.fodupload.controllers.LookupItemsController
-
public class LookupItemsController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected FodApiConnection
apiConnection
protected String
correlationId
protected PrintStream
logger
-
Constructor Summary
Constructors Constructor Description LookupItemsController(FodApiConnection apiConnection, PrintStream logger, String correlationId)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getCorrelationId()
List<LookupItemsModel>
getLookupItems(FodEnums.APILookupItemTypes type)
GET given enumprotected void
println(String log)
protected void
printStackTrace(Exception e)
-
-
-
Field Detail
-
apiConnection
protected FodApiConnection apiConnection
-
correlationId
protected String correlationId
-
logger
protected PrintStream logger
-
-
Constructor Detail
-
LookupItemsController
public LookupItemsController(FodApiConnection apiConnection, PrintStream logger, String correlationId)
Constructor- Parameters:
apiConnection
- apiConnection connection object with client infologger
- logger objectcorrelationId
- correlation id
-
-
Method Detail
-
getLookupItems
public List<LookupItemsModel> getLookupItems(FodEnums.APILookupItemTypes type) throws IOException
GET given enum- Parameters:
type
- enum to look up at_return array of enum values and text or null- Throws:
IOException
- in some circumstances
-
getCorrelationId
protected String getCorrelationId()
-
println
protected void println(String log)
-
printStackTrace
protected void printStackTrace(Exception e)
-
-