BAEL-8824 Align module names, folder names and artifact id
- Folder name changes
This commit is contained in:
16
spring-remoting/remoting-http/remoting-http-api/pom.xml
Normal file
16
spring-remoting/remoting-http/remoting-http-api/pom.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>remoting-http-api</artifactId>
|
||||
<name>remoting-http-api</name>
|
||||
<description>API definition shared between client and server.</description>
|
||||
|
||||
<parent>
|
||||
<artifactId>remoting-http</artifactId>
|
||||
<groupId>com.baeldung</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.baeldung.api;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import static java.lang.String.format;
|
||||
|
||||
public class Booking implements Serializable {
|
||||
private String bookingCode;
|
||||
|
||||
@Override public String toString() {
|
||||
return format("Ride confirmed: code '%s'.", bookingCode);
|
||||
}
|
||||
|
||||
public Booking(String bookingCode) {
|
||||
this.bookingCode = bookingCode;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.baeldung.api;
|
||||
|
||||
public class BookingException extends Exception {
|
||||
public BookingException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.baeldung.api;
|
||||
|
||||
public interface CabBookingService {
|
||||
Booking bookRide(String pickUpLocation) throws BookingException;
|
||||
}
|
||||
Reference in New Issue
Block a user