@@ -0,0 +1,1655 @@
+package org.restexpress;%0A%0Aimport org.jboss.netty.channel.Channel;%0Aimport org.restexpress.context.ServerContext;%0Aimport org.restexpress.domain.metadata.ServerMetadata;%0Aimport org.restexpress.settings.RestExpressSettings;%0A%0Apublic interface RestExpressService %7B%0A%0A%09/**%0A%09 * @return %7B@link RestExpressSettings%7D instance.%0A%09 */%0A%09public RestExpressSettings settings();%0A%0A%09/**%0A%09 * @return %7B@link ServerContext%7D instance.%0A%09 */%0A%09public ServerContext context();%0A%0A%09/**%0A%09 * Retrieve meta data about the routes in this RestExpress server.%0A%09 * %0A%09 * @return ServerMetadata instance.%0A%09 */%0A%09public ServerMetadata getRouteMetadata();%0A%0A%09/**%0A%09 * The last call in the building of a RestExpress server, bind() causes%0A%09 * Netty to bind to the listening address and process incoming messages.%0A%09 * %0A%09 * @return Channel%0A%09 */%0A%09public Channel bind();%0A%0A%09/**%0A%09 * The last call in the building of a RestExpress server, bind() causes%0A%09 * Netty to bind to the listening address and process incoming messages.%0A%09 * %0A%09 * @param port%0A%09 * @return Channel%0A%09 */%0A%09public Channel bind(final int port);%0A%0A%09/**%0A%09 * Releases all resources associated with this server so the JVM can%0A%09 * shutdown cleanly. Call this method to finish using the server. To utilize%0A%09 * the default shutdown hook in main() provided by RestExpress, call%0A%09 * awaitShutdown() instead.%0A%09 */%0A%09public void shutdown();%0A%0A%09/**%0A%09 * Used in main() to install a default JVM shutdown hook and shut down the%0A%09 * server cleanly. Calls shutdown() when JVM termination detected. To%0A%09 * utilize your own shutdown hook(s), install your own shutdown hook(s) and%0A%09 * call shutdown() instead of awaitShutdown().%0A%09 */%0A%09public void awaitShutdown();%0A%0A%7D%0A

define basic service method