Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
OrderServiceImpl |
|
| 0.0;0 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.example.bookstore; | |
8 | ||
9 | import javax.jws.WebService; | |
10 | ||
11 | /** | |
12 | * Service for placing a book order. | |
13 | * @see OrderService | |
14 | */ | |
15 | @WebService(serviceName="OrderService", endpointInterface="org.mule.example.bookstore.OrderService") | |
16 | 0 | public class OrderServiceImpl implements OrderService |
17 | { | |
18 | public Order orderBook(Book book, int quantity, String address, String email) | |
19 | { | |
20 | 0 | System.out.println("Order has been placed for book: " + book.getTitle()); |
21 | 0 | return new Order(book, quantity, address, email); |
22 | } | |
23 | } |