BAEL-8824 Align module names, folder names and artifact id

- Folder name changes
This commit is contained in:
Dhawal Kapil
2018-09-04 20:23:31 +05:30
parent 3130251d3a
commit 6ea3e51f19
70 changed files with 57 additions and 41 deletions

View 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>

View File

@@ -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;
}
}

View File

@@ -0,0 +1,7 @@
package com.baeldung.api;
public class BookingException extends Exception {
public BookingException(String message) {
super(message);
}
}

View File

@@ -0,0 +1,5 @@
package com.baeldung.api;
public interface CabBookingService {
Booking bookRide(String pickUpLocation) throws BookingException;
}