Search in sources :

Example 1 with GetAllCustomersResponse

use of com.example.customerservice.multipart.GetAllCustomersResponse in project camel by apache.

the class MultiPartCustomerServiceImpl method getAllCustomers.

@Override
public void getAllCustomers(Holder<GetAllCustomersResponse> parameters, Holder<CompanyType> companyType) {
    if (companyType == null) {
        throw new IllegalArgumentException("companyType may not be null");
    }
    GetAllCustomersResponse response = new GetAllCustomersResponse();
    Customer customer = new Customer();
    customer.setName("Smith");
    customer.setRevenue(100000);
    response.getReturn().add(customer);
}
Also used : GetAllCustomersResponse(com.example.customerservice.multipart.GetAllCustomersResponse) Customer(com.example.customerservice.multipart.Customer) SaveCustomer(com.example.customerservice.multipart.SaveCustomer)

Aggregations

Customer (com.example.customerservice.multipart.Customer)1 GetAllCustomersResponse (com.example.customerservice.multipart.GetAllCustomersResponse)1 SaveCustomer (com.example.customerservice.multipart.SaveCustomer)1