Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CatalogService |
|
| 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 java.util.Collection; | |
10 | ||
11 | import javax.jws.WebParam; | |
12 | import javax.jws.WebResult; | |
13 | import javax.jws.WebService; | |
14 | ||
15 | /** | |
16 | * Interface for working with the bookstore's catalog of books | |
17 | */ | |
18 | @WebService | |
19 | public interface CatalogService | |
20 | { | |
21 | /** The catalog will be accesible as a web service at this URL */ | |
22 | static final String URL = "http://0.0.0.0:8777/services/catalog"; | |
23 | ||
24 | /** Return a collection of all books in the catalog */ | |
25 | @WebResult(name="books") | |
26 | Collection<Book> getBooks(); | |
27 | ||
28 | /** Look up the details for a particular book by ID */ | |
29 | @WebResult(name="book") | |
30 | Book getBook(@WebParam(name="bookId") long bookId); | |
31 | } |