Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

little refactoring for : HeaderBroadcasterCache that didn't extends the right class #25

Merged
merged 1 commit into from
Sep 20, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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