org.apache.shindig.sample.container
Class SampleContainerHandler

java.lang.Object
  extended by org.apache.shindig.sample.container.SampleContainerHandler

public class SampleContainerHandler
extends Object


Constructor Summary
SampleContainerHandler(JsonDbOpensocialService dbService, HttpFetcher fetcher)
           
 
Method Summary
 Future<?> create(RequestItem request)
          Handles /samplecontainer/setstate and /samplecontainer/setevilness/{doevil}.
 Future<?> get(RequestItem request)
          Handles /samplecontainer/dumpstate
 Future<?> update(RequestItem request)
          We don't distinguish between put and post for these urls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleContainerHandler

@Inject
public SampleContainerHandler(JsonDbOpensocialService dbService,
                                     HttpFetcher fetcher)
Method Detail

update

public Future<?> update(RequestItem request)
                 throws ProtocolException
We don't distinguish between put and post for these urls.

Throws:
ProtocolException

create

public Future<?> create(RequestItem request)
                 throws ProtocolException
Handles /samplecontainer/setstate and /samplecontainer/setevilness/{doevil}. TODO(doll): These urls aren't very resty. Consider changing the samplecontainer.html calls post.

Throws:
ProtocolException

get

public Future<?> get(RequestItem request)
Handles /samplecontainer/dumpstate



Copyright © 2007-2012. All Rights Reserved.