fixed html_page

This commit is contained in:
Francesco Mangiacrapa 2024-04-22 11:32:56 +02:00
parent 933efabb3f
commit 4b0c11136e
2 changed files with 4 additions and 4 deletions

View File

@ -50,11 +50,11 @@ public class HTML_Page {
+ " async function fetchPDF_URL() {\n" + " async function fetchPDF_URL() {\n"
+ " try {\n" + " try {\n"
+ "\n" + "\n"
+ " const response = await fetch('https://data.dev.d4science.org/geoportal/view/profiledConcessioni_661d2c6f8804530afb90b132_1713774501389');\n" + " const response = await fetch("+viewPdfURL+");\n"
+ " console.log(\"polling response\");\n" + " console.log(\"polling response\");\n"
+ " return response.json();\n" + " return response.json();\n"
+ " } catch (error) {\n" + " } catch (error) {\n"
+ " cconsole.error(\"polling errro: \" + error);\n" + " console.error(\"polling errro: \" + error);\n"
+ " }\n" + " }\n"
+ " }\n" + " }\n"
+ " async function playPDFPoll() {\n" + " async function playPDFPoll() {\n"

View File

@ -76,7 +76,7 @@ public class RequestHandler implements ContainerRequestFilter, ContainerResponse
*/ */
@Override @Override
public void filter(ContainerRequestContext reqContext) throws IOException { public void filter(ContainerRequestContext reqContext) throws IOException {
log.info(RequestHandler.class.getSimpleName() + " Request called"); log.debug(RequestHandler.class.getSimpleName() + " Request called");
setSecretManager(reqContext); setSecretManager(reqContext);
if (SecurityTokenProvider.instance.get() == null) if (SecurityTokenProvider.instance.get() == null)
@ -85,7 +85,7 @@ public class RequestHandler implements ContainerRequestFilter, ContainerResponse
if (ScopeProvider.instance.get() == null) if (ScopeProvider.instance.get() == null)
ScopeProvider.instance.set(context.getInitParameter(ROOT_SCOPE)); ScopeProvider.instance.set(context.getInitParameter(ROOT_SCOPE));
log.info("Token and Scope Provider set called"); log.debug("Token and Scope Provider set called");
List<String> listOfPath = UriResolverServices.getInstance().getListOfResourcePath(application.getClasses()); List<String> listOfPath = UriResolverServices.getInstance().getListOfResourcePath(application.getClasses());
log.debug("The resources are: {}", listOfPath); log.debug("The resources are: {}", listOfPath);