Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/undertow.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"};
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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.
Internal routing occurs by first mapping the package to a handler and then the handler internally routing the method call.