Interface RestfulServer

All Superinterfaces:
org.refcodes.web.BaseLocatorAccessor, org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<RestfulServer>, org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator, org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty, org.refcodes.web.MediaTypeFactoryLookup, org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup, org.refcodes.observer.Observable<RestEndpoint>, org.refcodes.observer.Observers<RestEndpoint,RestfulServer>, org.refcodes.web.RealmAccessor, org.refcodes.web.RealmAccessor.RealmBuilder<RestfulServer>, org.refcodes.web.RealmAccessor.RealmMutator, org.refcodes.web.RealmAccessor.RealmProperty
All Known Subinterfaces:
RestfulHttpRegistryServer<DESC,B>, RestfulHttpServer
All Known Implementing Classes:
AbstractRestfulHttpRegistryServerDecorator, AbstractRestfulHttpServerDecorator, AbstractRestfulServer, HttpRestServer, HttpRestServerSingleton, LoopbackRestServer, LoopbackRestServerSingleton

public interface RestfulServer extends org.refcodes.observer.Observable<RestEndpoint>, org.refcodes.observer.Observers<RestEndpoint,RestfulServer>, org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup, org.refcodes.web.RealmAccessor.RealmProperty, org.refcodes.web.RealmAccessor.RealmBuilder<RestfulServer>, org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty, org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<RestfulServer>
The RestfulServer acts as the target for clients issuing REST requests. RestEndpointBuilder instances, most easily being created with the onRequest(HttpMethod, String, RestRequestConsumer) method (or the like), are registered as listeners to the RestfulServer ( RestfulHttpServer). The RestfulServer (RestfulHttpServer) fires RestRequestEvent events to the RestRequestConsumers of an RestEndpoint dedicated to an according locator (pattern) for a specific HttpMethod.