forked from Archives/Athou_commafeed
various tweaks
This commit is contained in:
@@ -2,7 +2,6 @@ package com.commafeed.backend.services;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ejb.Stateless;
|
|
||||||
import javax.ejb.ApplicationException;
|
import javax.ejb.ApplicationException;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
@@ -18,7 +17,6 @@ import com.commafeed.backend.model.FeedSubscription;
|
|||||||
import com.commafeed.backend.model.User;
|
import com.commafeed.backend.model.User;
|
||||||
import com.google.api.client.util.Lists;
|
import com.google.api.client.util.Lists;
|
||||||
|
|
||||||
@Stateless
|
|
||||||
public class FeedSubscriptionService {
|
public class FeedSubscriptionService {
|
||||||
|
|
||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
@@ -53,7 +51,7 @@ public class FeedSubscriptionService {
|
|||||||
final String pubUrl = applicationSettingsService.get().getPublicUrl();
|
final String pubUrl = applicationSettingsService.get().getPublicUrl();
|
||||||
if (pubUrl == null) {
|
if (pubUrl == null) {
|
||||||
throw new FeedSubscriptionException(
|
throw new FeedSubscriptionException(
|
||||||
"Public URL of this CommaFeed is unset");
|
"Public URL of this CommaFeed instance is not set");
|
||||||
}
|
}
|
||||||
if (url.startsWith(pubUrl)) {
|
if (url.startsWith(pubUrl)) {
|
||||||
throw new FeedSubscriptionException(
|
throw new FeedSubscriptionException(
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ public class PubSubHubbubCallbackREST {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.debug("Could not parse pubsub callback: " + e.getMessage(), e);
|
log.error("Could not parse pubsub callback: " + e.getMessage());
|
||||||
}
|
}
|
||||||
return Response.ok().build();
|
return Response.ok().build();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user