JAVA-12579 Renamed spring-remoting to spring-remoting-modules

This commit is contained in:
Dhawal Kapil
2022-06-07 21:17:55 +05:30
parent ba64c4aa58
commit d2d3dc80fc
66 changed files with 9 additions and 9 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>
<groupId>com.baeldung</groupId>
<artifactId>remoting-http</artifactId>
<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;
}