[DEV] add model to get in query

This commit is contained in:
Edouard DUPIN 2022-05-23 23:48:45 +02:00
parent 1b71740b84
commit fb821b3e36
3 changed files with 9 additions and 2 deletions

View File

@ -4,6 +4,8 @@ import java.lang.reflect.Method;
import javax.annotation.security.DenyAll;
import javax.annotation.security.PermitAll;
import javax.annotation.security.RolesAllowed;
import org.kar.karideo.annotation.PermitTokenInURI;
import org.kar.karideo.model.User;
import org.kar.karideo.model.UserSmall;
@ -84,6 +86,11 @@ public class AuthenticationFilter implements ContainerRequestFilter {
System.out.println(" param: " + item.getKey() + " ==>" + item.getValue());
}
System.out.println(" -------------------------------");
MultivaluedMap<String, String> quaryparam = requestContext.getUriInfo().getQueryParameters();
for (Entry<String, List<String>> item: quaryparam.entrySet()) {
System.out.println(" query: " + item.getKey() + " ==>" + item.getValue());
}
System.out.println(" -------------------------------");
MultivaluedMap<String, String> headers = requestContext.getHeaders();
for (Entry<String, List<String>> item: headers.entrySet()) {
System.out.println(" headers: " + item.getKey() + " ==>" + item.getValue());

View File

@ -1,4 +1,4 @@
package org.kar.karideo;
package org.kar.karideo.annotation;
import javax.ws.rs.NameBinding;
import java.lang.annotation.Retention;

View File

@ -4,8 +4,8 @@ import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
import org.glassfish.jersey.media.multipart.FormDataParam;
import org.kar.karideo.ConfigVariable;
import org.kar.karideo.GenericContext;
import org.kar.karideo.PermitTokenInURI;
import org.kar.karideo.WebLauncher;
import org.kar.karideo.annotation.PermitTokenInURI;
import org.kar.karideo.db.DBEntry;
import org.kar.karideo.model.Data;
import org.kar.karideo.model.DataSmall;