{"id":51559,"date":"2016-02-01T22:00:49","date_gmt":"2016-02-01T20:00:49","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=51559"},"modified":"2016-02-01T19:43:28","modified_gmt":"2016-02-01T17:43:28","slug":"java-ee-8-mvc-working-path-parameters","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html","title":{"rendered":"Java EE 8 MVC: Working with Path Parameters"},"content":{"rendered":"<p>In the previous post we saw <a href=\"http:\/\/www.javacodegeeks.com\/2016\/01\/java-ee-8-mvc-working-query-parameters.html\">how to work with query parameters in Java EE MVC<\/a>. This post continues with a very similar topic: path parameters.<\/p>\n<p>Path parameters are a dynamic part of the request path and can be specified with the @Path annotation.<\/p>\n<p>For example:<\/p>\n<pre class=\" brush:java\">@Controller\r\n@Path(\"path-params\")\r\npublic class PathParamsController {\r\n\r\n  @GET\r\n  @Path(\"\/date\/{year}\/{month}\")\r\n  public String pathParamDate(@PathParam(\"year\") int year, @PathParam(\"month\") int month) {\r\n    ...\r\n  }\r\n}<\/pre>\n<p>Paths parameter are surrounded with curly brackets inside the @Path annotation. In this example two path parameters are defined: year and month.<\/p>\n<p>With @PathParam path parameters can be mapped to method parameters.<\/p>\n<p>We can call this method by sending a request to<\/p>\n<pre class=\" brush:java\">\/path-params\/date\/2016\/01<\/pre>\n<p>In this case 2016 and 1 will be passed as year and month arguments.<\/p>\n<h2>Type conversion<\/h2>\n<p>Path parameters use the same type conversion rules as query parameters (<a href=\"http:\/\/www.javacodegeeks.com\/2016\/01\/java-ee-8-mvc-working-query-parameters.html\">explained in the previous blog post<\/a>).<\/p>\n<p>For example, we can convert a path parameter to an enum value like this:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\" brush:java\">public enum Role {\r\n  admin, reporter, accountant\r\n}<\/pre>\n<pre class=\" brush:java\">@Controller\r\n@Path(\"path-params\")\r\npublic class PathParamsController {\r\n\r\n  @GET\r\n  @Path(\"\/roles\/{role}\")\r\n  public String pathParamUsers(@PathParam(\"role\") Role role) {\r\n    ...\r\n  }\r\n}<\/pre>\n<p>If we now send a request to<\/p>\n<pre class=\" brush:java\">\/path-params\/roles\/admin<\/pre>\n<p>the string admin gets converted to the corresponding enum constant.<\/p>\n<h2>Using @PathParam on fields and methods<\/h2>\n<p>Like @QueryParam the usage of @PathParam is not limited to method parameters. It is also possible to annotate fields or setters with @PathParam.<\/p>\n<p>For example:<\/p>\n<pre class=\" brush:java\">@Controller\r\n@Path(\"path-params\")\r\npublic class PathParamsController {\r\n\r\n  @PathParam(\"category\")\r\n  private String category;\r\n\r\n  @GET\r\n  @Path(\"\/categories\/{category}\")\r\n  public String findByCategory() {\r\n    \/\/ work with category\r\n  }\r\n}<\/pre>\n<h2>Using Path Parameters with Patterns<\/h2>\n<p>It is possible to define a more specific pattern for a path variable. Therefore, a regular expression can be added after the name of the path variable.<\/p>\n<p>For example:<\/p>\n<pre class=\" brush:java\">@Controller\r\n@Path(\"path-params\")\r\npublic class PathParamsController {\r\n\r\n  @GET\r\n  @Path(\"\/users\/{id : \\\\d+}\")\r\n  public String findUserById(@PathParam(\"id\") long id) {\r\n    ...\r\n  }\r\n\r\n  @GET\r\n  @Path(\"\/users\/{name : [a-zA-Z]+}\")\r\n  public String findUserByName(@PathParam(\"name\") String name) {\r\n    ...\r\n  }  \r\n}<\/pre>\n<p>Here we define two controller methods that listen on \/users\/{variable}:<\/p>\n<ul>\n<li>findUserById() is only called if a numeric id is part of the request path<\/li>\n<li>findUserByName() is used if the path parameter matches the regular expression [a-zA-Z]+.<\/li>\n<\/ul>\n<p>So if we send a request to<\/p>\n<pre class=\" brush:java\">\/path-params\/users\/123<\/pre>\n<p>findUserById() will be called and 123 is passed as id.<\/p>\n<p>Sending a request to<\/p>\n<pre class=\" brush:java\">\/path-params\/users\/john<\/pre>\n<p>calls findUserByName() and passes john as name.<\/p>\n<h2>Quick Summary<\/h2>\n<p>@PathParam can be used to extract path parameters defined with @Path. Like @QueryParam, @PathParam can be used on method arguments, instance fields and methods.<\/p>\n<p>When defining path parameters with @Path, a regular expression can be used to define a specific path pattern.<\/p>\n<ul>\n<li>You can find the source code for all shown examples on <a href=\"https:\/\/github.com\/mscharhag\/java-ee-8-mvc\/tree\/master\/request-data\">GitHub<\/a>.<\/li>\n<\/ul>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/www.mscharhag.com\/java-ee-mvc\/path-parameters\">Java EE 8 MVC: Working with Path Parameters<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/join-us\/jcg\/\">JCG partner<\/a> Michael Scharhag at the <a href=\"http:\/\/www.mscharhag.com\/\">mscharhag, Programming and Stuff<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In the previous post we saw how to work with query parameters in Java EE MVC. This post continues with a very similar topic: path parameters. Path parameters are a dynamic part of the request path and can be specified with the @Path annotation. For example: @Controller @Path(&#8220;path-params&#8221;) public class PathParamsController { @GET @Path(&#8220;\/date\/{year}\/{month}&#8221;) public &hellip;<\/p>\n","protected":false},"author":514,"featured_media":112,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[1048],"class_list":["post-51559","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-java-ee-8"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Java EE 8 MVC: Working with Path Parameters - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"In the previous post we saw how to work with query parameters in Java EE MVC. This post continues with a very similar topic: path parameters. Path\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java EE 8 MVC: Working with Path Parameters - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"In the previous post we saw how to work with query parameters in Java EE MVC. This post continues with a very similar topic: path parameters. Path\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-01T20:00:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Scharhag\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/mscharhag\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Scharhag\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html\"},\"author\":{\"name\":\"Michael Scharhag\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/0f0f81e875d40e3f820392e0ffce65d1\"},\"headline\":\"Java EE 8 MVC: Working with Path Parameters\",\"datePublished\":\"2016-02-01T20:00:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html\"},\"wordCount\":363,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"keywords\":[\"Java EE 8\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html\",\"name\":\"Java EE 8 MVC: Working with Path Parameters - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"datePublished\":\"2016-02-01T20:00:49+00:00\",\"description\":\"In the previous post we saw how to work with query parameters in Java EE MVC. This post continues with a very similar topic: path parameters. Path\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"java-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/02\\\/java-ee-8-mvc-working-path-parameters.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Java EE 8 MVC: Working with Path Parameters\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/0f0f81e875d40e3f820392e0ffce65d1\",\"name\":\"Michael Scharhag\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52283459bfc820fb6a66704b3eccc771a1d8a63a0bdbbe1651bb5cb383a42148?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52283459bfc820fb6a66704b3eccc771a1d8a63a0bdbbe1651bb5cb383a42148?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52283459bfc820fb6a66704b3eccc771a1d8a63a0bdbbe1651bb5cb383a42148?s=96&d=mm&r=g\",\"caption\":\"Michael Scharhag\"},\"description\":\"Michael Scharhag is a Java Developer, Blogger and technology enthusiast. Particularly interested in Java related technologies including Java EE, Spring, Groovy and Grails.\",\"sameAs\":[\"http:\\\/\\\/www.mscharhag.com\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/mscharhag\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/michael-scharhag\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java EE 8 MVC: Working with Path Parameters - Java Code Geeks","description":"In the previous post we saw how to work with query parameters in Java EE MVC. This post continues with a very similar topic: path parameters. Path","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html","og_locale":"en_US","og_type":"article","og_title":"Java EE 8 MVC: Working with Path Parameters - Java Code Geeks","og_description":"In the previous post we saw how to work with query parameters in Java EE MVC. This post continues with a very similar topic: path parameters. Path","og_url":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2016-02-01T20:00:49+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","type":"image\/jpeg"}],"author":"Michael Scharhag","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/mscharhag","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Michael Scharhag","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html"},"author":{"name":"Michael Scharhag","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/0f0f81e875d40e3f820392e0ffce65d1"},"headline":"Java EE 8 MVC: Working with Path Parameters","datePublished":"2016-02-01T20:00:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html"},"wordCount":363,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","keywords":["Java EE 8"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html","url":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html","name":"Java EE 8 MVC: Working with Path Parameters - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","datePublished":"2016-02-01T20:00:49+00:00","description":"In the previous post we saw how to work with query parameters in Java EE MVC. This post continues with a very similar topic: path parameters. Path","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","width":150,"height":150,"caption":"java-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2016\/02\/java-ee-8-mvc-working-path-parameters.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Java EE 8 MVC: Working with Path Parameters"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/0f0f81e875d40e3f820392e0ffce65d1","name":"Michael Scharhag","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/52283459bfc820fb6a66704b3eccc771a1d8a63a0bdbbe1651bb5cb383a42148?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/52283459bfc820fb6a66704b3eccc771a1d8a63a0bdbbe1651bb5cb383a42148?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/52283459bfc820fb6a66704b3eccc771a1d8a63a0bdbbe1651bb5cb383a42148?s=96&d=mm&r=g","caption":"Michael Scharhag"},"description":"Michael Scharhag is a Java Developer, Blogger and technology enthusiast. Particularly interested in Java related technologies including Java EE, Spring, Groovy and Grails.","sameAs":["http:\/\/www.mscharhag.com\/","https:\/\/x.com\/https:\/\/twitter.com\/mscharhag"],"url":"https:\/\/www.javacodegeeks.com\/author\/michael-scharhag"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/51559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/514"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=51559"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/51559\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/112"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=51559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=51559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=51559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}