Sse migration from text to http package

This should address most of #205 and does address #209.

As mentioned in #209.  I moved the original classes and then created subclasses with the same name in the text.sse package.  These sub classes are marked as deprecated and will be removed, but they should provide backwards compatibility via casting to their super classes for anyone that happens to be using them in explicitly in their code. 
I would prefer the latter, and will add the deprecation flags.


On Wed, Aug 20, 2014 at 11:57 PM, Nitesh Kant <notifications@github.com>
wrote:

> In
> rx-netty/src/main/java/io/reactivex/netty/protocol/http/sse/SSEClientPipelineConfigurator.java:
>
> > +import io.reactivex.netty.protocol.http.sse.SSEInboundHandler;
> > +import io.reactivex.netty.protocol.http.sse.SseOverHttpClientPipelineConfigurator;
> > +
> > +/**
> > + * An implementation of {@link PipelineConfigurator} that will setup Netty's pipeline for a client recieving
> > + * Server Sent Events. <br/>
> > + * This will convert {@link ByteBuf} objects to {@link ServerSentEvent}. So, if the client is an HTTP client, then you would
> > + * have to use {@link SseOverHttpClientPipelineConfigurator} instead.
> > + *
> > + * @param <W> The request type for the client pipeline.
> > + *
> > + * @see ServerSentEventDecoder
> > + *
> > + * @author Nitesh Kant
> > + */
> > +public class SSEClientPipelineConfigurator<W> implements PipelineConfigurator<ServerSentEvent, W> {
>
> My point was that we do not need both
> SseOverHttpClientPipelineConfigurator and SSEClientPipelineConfigurator
> (same for server).
>
> So, we don't need to add SSEClientPipelineConfigurator to http package.
> Just fold it into SseOverHttpClientPipelineConfigurator
>
> Alternatively, deprecate SseOverHttpClientPipelineConfigurator and just
> have SSEClientPipelineConfigurator in http package containing what it
> takes to run SSE.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ReactiveX/RxNetty/pull/210/files#r16523315>.
>