/*
 * Copyright 2017 Crown Copyright
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package stroom.receive.common;

import stroom.event.logging.rs.api.AutoLogged;
import stroom.proxy.feed.remote.GetFeedStatusRequest;
import stroom.proxy.feed.remote.GetFeedStatusResponse;
import stroom.util.HasHealthCheck;

import com.codahale.metrics.annotation.Timed;
import com.codahale.metrics.health.HealthCheck.Result;

import javax.inject.Inject;

@AutoLogged
public class FeedStatusResourceImpl implements FeedStatusResource, HasHealthCheck {

    private final FeedStatusService feedStatusService;

    @Inject
    public FeedStatusResourceImpl(final FeedStatusService feedStatusService) {
        this.feedStatusService = feedStatusService;
    }

    @Timed
    @Override
    // TODO This should really be a GET with the feedName and senderDn as params
    public GetFeedStatusResponse getFeedStatus(final GetFeedStatusRequest request) {
        return feedStatusService.getFeedStatus(request);
    }

    @Override
    public Result getHealth() {
        return Result.healthy();
    }
}

@@ -668,24 +668,85 @@
 AutoLogged;%0A
+import stroom.event.logging.rs.api.AutoLogged.OperationType;%0A
 import stroo
@@ -1012,20 +1012,74 @@
 ct;%0A
-%0A@AutoLogged
+import javax.inject.Provider;%0A%0A@AutoLogged(OperationType.UNLOGGED)
 %0Apub
@@ -1174,24 +1174,33 @@
 ivate final 
+Provider%3C
 FeedStatusSe
@@ -1196,32 +1196,33 @@
 eedStatusService
+%3E
  feedStatusServi
@@ -1223,16 +1223,24 @@
 sService
+Provider
 ;%0A%0A    @
@@ -1286,16 +1286,25 @@
 l(final 
+Provider%3C
 FeedStat
@@ -1312,16 +1312,17 @@
 sService
+%3E
  feedSta
@@ -1331,16 +1331,24 @@
 sService
+Provider
 ) %7B%0A    
@@ -1373,16 +1373,24 @@
 sService
+Provider
  = feedS
@@ -1401,16 +1401,24 @@
 sService
+Provider
 ;%0A    %7D%0A
@@ -1641,16 +1641,30 @@
 sService
+Provider.get()
 .getFeed

Apply standards for REST to FeedStatusResourceImpl