public class CreatePlaceRequestExecutor extends RequestExecutor<Place>
PlacesApi. Use this class if you want to create
places through fluent API in chained fashion, for example:
KontaktCloud kontaktCloud = KontaktCloudFactory.create();
kontaktCloud.places().create(place)
.withSchemaFile(new File(fileName))
.execute();
| Constructor and Description |
|---|
CreatePlaceRequestExecutor(PlacesService placesService,
Place place)
Constructs request executor initialized with corresponding service class.
|
| Modifier and Type | Method and Description |
|---|---|
Place |
execute()
Executes created request synchronously.
|
void |
execute(CloudCallback<Place> callback)
Executes created request asynchronously and invokes callback with the result.
|
CreatePlaceRequestExecutor |
withSchemaFile(java.io.File schemaFile)
Specifies a schema file of newly created place.
|
public CreatePlaceRequestExecutor(PlacesService placesService, Place place)
placesService - the places API service.place - the place we want to create.public CreatePlaceRequestExecutor withSchemaFile(java.io.File schemaFile) throws java.io.IOException
schemaFile - the schema file.java.io.IOException - instance of IOException.public Place execute() throws java.io.IOException, KontaktCloudException
execute in class RequestExecutor<Place>java.io.IOException - exceptionKontaktCloudException - exceptionpublic void execute(CloudCallback<Place> callback)
execute in class RequestExecutor<Place>callback - the callback object.