T - The object to send throw the wirepublic class RestItemWriter<T> extends Object implements org.springframework.batch.item.ItemWriter<T>, org.springframework.beans.factory.InitializingBean
ItemWriter support for Restfull service.
This ItemWriter will send the item using a REST POST. We will send
the date of the call in the Date HTTP Header.
A parameter will allow you to define if you want to send the item one at a
time or directly a list of item. The default behavior is to send the list
(for obvious performance reason)| Constructor and Description |
|---|
RestItemWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
getEndpoinUrl() |
String |
getPath() |
List<javax.ws.rs.ext.MessageBodyWriter<T>> |
getProviders() |
boolean |
isSingleCommit() |
void |
send(List<? extends T> items) |
void |
setEndpoinUrl(String endpoinUrl) |
void |
setOutputFormat(String outputFormat) |
void |
setPath(String path) |
void |
setProviders(List<javax.ws.rs.ext.MessageBodyWriter<T>> providers) |
void |
setSingleCommit(boolean singleCommit) |
void |
write(List<? extends T> items) |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic String getEndpoinUrl()
public void setEndpoinUrl(String endpoinUrl)
public String getPath()
public void setPath(String path)
public void setOutputFormat(String outputFormat)
public boolean isSingleCommit()
public void setSingleCommit(boolean singleCommit)
Copyright © 2016. All rights reserved.