From a2b20e64e487f61afb679f593070838d213f7fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E7=81=BC=E8=B4=A4?= Date: Sat, 12 Oct 2019 07:30:08 +0800 Subject: [PATCH] fix undertow demo error. --- docs/undertow.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/undertow.md b/docs/undertow.md index d3159e4..b83add9 100644 --- a/docs/undertow.md +++ b/docs/undertow.md @@ -140,13 +140,13 @@ Following on from the haberdasher example, here's a simple implementation of the package com.example.demo.service; import com.example.demo.haberdasher.rpc.HaberdasherOuterClass; -import com.example.demo.haberdasher.rpc.RpcHaberdasherService; +import com.example.demo.haberdasher.rpc.RpcHaberdasher; import com.flit.runtime.ErrorCode; import com.flit.runtime.FlitException; import java.util.Random; -public class HaberDasherService implements RpcHaberdasherService { +public class HaberDasherService implements RpcHaberdasher { private static final String[] NAMES = new String[]{"bowler", "baseball cap", "top hat", "derby"}; private static final String[] COLOURS = new String[]{"white", "black", "brown", "red", "blue"}; @@ -204,7 +204,7 @@ And finally, wire it all up: package com.example.demo; import com.example.demo.haberdasher.rpc.RpcHaberdasherHandler; -import com.example.demo.haberdasher.service.HaberdasherService; +import com.example.demo.service.HaberdasherService; import com.flit.runtime.undertow.FlitHandler; import io.undertow.Undertow; @@ -346,4 +346,4 @@ The Flit handler is just an implementation of an Undetow Handler. You can custom to the request. If the Flit handler is constructed with a following handler, then any time a route doesn't match it will call next. -Internal routing occurs by first mapping the package to a handler and then the handler internally routing the method call. \ No newline at end of file +Internal routing occurs by first mapping the package to a handler and then the handler internally routing the method call.