package org.aktin.broker.admin.rest;

public class RequestEndpoint {

	
}

@@ -35,40 +35,586 @@
 t;%0A%0A
-public class RequestEndpoint %7B%0A
+import java.util.logging.Logger;%0A%0Aimport javax.ws.rs.Consumes;%0Aimport javax.ws.rs.POST;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.core.MediaType;%0A%0Aimport org.aktin.broker.query.xml.QueryRequest;%0A%0A@Path(%22validator%22)%0Apublic class ValidatorEndpoint %7B%0A%09private static final Logger log = Logger.getLogger(ValidatorEndpoint.class.getName());%0A%0A%09@POST%0A%09@Path(%22check%22)%0A%09@Consumes(MediaType.APPLICATION_XML)%0A%09public void checkSyntax(QueryRequest request)%7B%0A%09%09log.info(%22Validation: %22+request);%0A%09%09System.out.println(%22validation?! %22+request);%0A%09%09// TODO validate SQL query extension syntax
 %0A%09
+%7D
 %0A%7D%0A

validate request XML