Skip to content

Commit

Permalink
Merge pull request #25 from survivant/master
Browse files Browse the repository at this point in the history
little refactoring for : HeaderBroadcasterCache  that didn't extends the right class
  • Loading branch information
jfarcand committed Sep 20, 2011
2 parents ef70a70 + 30a90d1 commit f1dccb0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
*
* @author Jeanfrancois Arcand
*/
public class HeaderBroadcasterCache extends SessionBroadcasterCache {
public class HeaderBroadcasterCache extends BroadcasterCacheBase {

public static final String HEADER_CACHE = "X-Cache-Date";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public void testHeaderBroadcasterCache() throws IllegalAccessException, ClassNot
c.preparePost(urlTarget).addParameter("message", "cachememe").execute().get();

//Suspend
Response r = c.prepareGet(urlTarget + "/subscribeAndResume").addHeader("X-Cache-Date", String.valueOf(t1)).execute(new AsyncCompletionHandler<Response>() {
Response r = c.prepareGet(urlTarget + "/subscribeAndResume").addHeader(HeaderBroadcasterCache.HEADER_CACHE, String.valueOf(t1)).execute(new AsyncCompletionHandler<Response>() {

@Override
public Response onCompleted(Response r) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import org.atmosphere.util.StringFilterAggregator;
import org.atmosphere.util.XSSHtmlFilter;

import javax.annotation.PreDestroy;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
Expand Down Expand Up @@ -138,7 +137,7 @@ public String suspend() {
}

/**
* Suspend the response, and tell teh framework to resume the response
* Suspend the response, and tell the framework to resume the response
* when the first @Broadcast operation occurs.
* @return A {@link org.atmosphere.jersey.Broadcastable} used to broadcast events.
*/
Expand Down

0 comments on commit f1dccb0

Please sign in to comment.