package com.psidox.saddlewoof.web.rest;

import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.PreMatching;
import javax.ws.rs.ext.Provider;
import java.io.IOException;

@Provider
@PreMatching
public class Interceptor implements ContainerRequestFilter {
	
    @Override
    public void filter(ContainerRequestContext reqContext) throws IOException {
        
//    	String request = "";
//        request += String.format("uri: %s %s %s\n", reqContext.getMethod(), reqContext.getUriInfo().getPath(), reqContext.getUriInfo().getQueryParameters().toString());
//    	request += String.format("lang: %s\n", reqContext.getAcceptableLanguages());
//    	request += String.format("media: %s\n", reqContext.getAcceptableMediaTypes());
//    	request += "headers:\n";
//    	for (String key: reqContext.getHeaders().keySet()) {
//    	   	request += String.format("+ %s: %s\n", key, reqContext.getHeaders().get(key));
//    	}
//		//request += String.format("body: %s\n", IOUtils.toString(reqContext.getEntityStream()));
//
//    	System.out.println(request);
    	
    }
}

@@ -434,18 +434,16 @@
        %0A
-//
     %09Str
@@ -460,18 +460,16 @@
 t = %22%22;%0A
-//
         
@@ -625,26 +625,24 @@
 oString());%0A
-//
     %09request
@@ -707,26 +707,24 @@
 nguages());%0A
-//
     %09request
@@ -791,26 +791,24 @@
 iaTypes());%0A
-//
     %09request
@@ -825,18 +825,16 @@
 rs:%5Cn%22;%0A
-//
     %09for
@@ -883,18 +883,16 @@
 et()) %7B%0A
-//
     %09   
@@ -975,19 +975,15 @@
 ));%0A
-//
     %09%7D%0A
-//
 %09%09//
@@ -1074,13 +1074,9 @@
 ));%0A
-//%0A//
+%0A
     

Add back logging for production debug