Feature/zen 14418

If something expires on the server that cause an unauthorized response the code clears tokens and needs to try again. 

> On Sep 24, 2014, at 8:22 PM, Andrew Lapidas <notifications@github.com> wrote:
> 
> In metric-reporter/src/main/java/org/zenoss/metrics/reporter/HttpPoster.java:
> 
> > @@ -66,6 +70,21 @@ private String asJson(Object obj) throws JsonProcessingException {
> >  
> >      @Override
> >      public void post(MetricBatch batch) throws IOException {
> > +        try {
> > +            postImpl(batch);
> > +        } catch (HttpResponseException e) {
> > +            if (e.getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
> > +                try {
> > +                    postImpl(batch);
> if unauthorized, try again? I don't get it
> 
> —
> Reply to this email directly or view it on GitHub.