Package com.contentstack.sdk
Class GlobalField
- java.lang.Object
-
- com.contentstack.sdk.GlobalField
-
public class GlobalField extends Object
This call returns information of a specific global field. It returns the global field schema.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfetch(GlobalFieldsCallback callback)voidfindAll(GlobalFieldsCallback callback)GlobalFieldincludeBranch()Fetch.GlobalFieldincludeGlobalFieldSchema()voidremoveHeader(String headerKey)Remove header fromStackvoidsetHeader(String headerKey, String headerValue)Sets header onStack.
-
-
-
Method Detail
-
setHeader
public void setHeader(String headerKey, String headerValue)
Sets header onStack.- Parameters:
headerKey- the header keyheaderValue- the header value
-
removeHeader
public void removeHeader(String headerKey)
Remove header fromStack- Parameters:
headerKey- the header key
-
includeBranch
public GlobalField includeBranch()
Fetch.- Parameters:
params- the paramscallback- the callback- Throws:
IllegalAccessException- illegal access exception
-
includeGlobalFieldSchema
public GlobalField includeGlobalFieldSchema()
-
fetch
public void fetch(GlobalFieldsCallback callback) throws IllegalAccessException
- Throws:
IllegalAccessException
-
findAll
public void findAll(GlobalFieldsCallback callback)
-
-