User Tools

Site Tools


web-integration:java-example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
web-integration:java-example [2019/08/15 06:49]
740803864 [Web Application Configuration File]
web-integration:java-example [2020/02/29 10:52] (current)
mpospisek
Line 25: Line 25:
 ==== Open ==== ==== Open ====
 First one starts authentication process: First one starts authentication process:
-<code java>+<sxh java>
 @WebServlet("/open") @WebServlet("/open")
 public class OpenServlet extends HttpServlet { public class OpenServlet extends HttpServlet {
Line 67: Line 67:
  
 } }
-</code>+</sxh>
 Some minor notes to source code: Some minor notes to source code:
   * way to get ''wsUrl'' is described in [[web-integration:java-example#web_application_configuration_file|Web Application Configuration File]] chapter   * way to get ''wsUrl'' is described in [[web-integration:java-example#web_application_configuration_file|Web Application Configuration File]] chapter
Line 76: Line 76:
 This servlet asks for authentication operation status: This servlet asks for authentication operation status:
  
-<code java>+<sxh java>
 @WebServlet("/proxy") @WebServlet("/proxy")
 public class ProxyServlet extends HttpServlet { public class ProxyServlet extends HttpServlet {
Line 109: Line 109:
  
 } }
-</code>+</sxh>
  
 Notes to source code: Notes to source code:
Line 116: Line 116:
 ==== Open Check ==== ==== Open Check ====
 Servlet evaluating authentication operation result: Servlet evaluating authentication operation result:
-<code java>+<sxh java>
 @WebServlet("/openCheck") @WebServlet("/openCheck")
 public class OpenCheckServlet extends HttpServlet { public class OpenCheckServlet extends HttpServlet {
Line 153: Line 153:
  
 } }
-</code>+</sxh>
  
 Some notes to source code: Some notes to source code:
Line 164: Line 164:
 Servlets described earlier are used in ''index.jsp'' page: Servlets described earlier are used in ''index.jsp'' page:
  
-<code javascript>+<sxh javascript>
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
  
Line 237: Line 237:
 </body> </body>
 </html> </html>
-</code>+</sxh>
  
 ==== Result Page ==== ==== Result Page ====
Line 243: Line 243:
 After successful authentication, ''UDI'' value is printed at ''result.jsp'' page: After successful authentication, ''UDI'' value is printed at ''result.jsp'' page:
  
-<code javascript>+<sxh javascript>
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
  
Line 279: Line 279:
  
 </web-app> </web-app>
-</code>+</sxh>
  
 Value ''${ws.url}'' is replaced at application building phase. See [[web-integration:java-example#building_application|Building Application]] chapter. Value ''${ws.url}'' is replaced at application building phase. See [[web-integration:java-example#building_application|Building Application]] chapter.
Line 287: Line 287:
 Maven configuration file contents definition of plugin to generate WS classes and instruction to filter ''${ws.url}'' value: Maven configuration file contents definition of plugin to generate WS classes and instruction to filter ''${ws.url}'' value:
  
-<code xml>+<sxh xml>
 <?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Line 365: Line 365:
     </dependencies>     </dependencies>
 </project> </project>
-</code>+</sxh>
 ===== Building Application ===== ===== Building Application =====
  
 There is prepared batch file ''build.bat'' to build application. It is neccessary to define right ''ws.url'' value as an address to AIM server: There is prepared batch file ''build.bat'' to build application. It is neccessary to define right ''ws.url'' value as an address to AIM server:
  
-<code>+<sxh bash>
 set MAVEN_OPTS="-Xmx512m" set MAVEN_OPTS="-Xmx512m"
 mvn -Dws.url=https://myaim.aducid.com -Dfile.encoding=UTF-8 clean install mvn -Dws.url=https://myaim.aducid.com -Dfile.encoding=UTF-8 clean install
-</code>+</sxh>
  
web-integration/java-example.1565851790.txt.gz ยท Last modified: 2019/08/15 06:49 by 740803864