• Home
  • Tags

Tags

/  apache-shiro (2) /  automount (1) /  aws (2) /  cas (1) /  centos (3) /  contextresolver (1) /  ebs (1) /  ec2 (1) /  glassfish (1) /  hadoop (1) /  java (6) /  java-ee (1) /  jax-rs (1) /  jersey (4) /  jsoup (1) /  ldap (1) /  machine-learning (1) /  map-reduce (1) /  maven (2) /  mongodb (4) /  morphia (2) /  neural-networks (1) /  nosql (1) /  restful (1) /  simplemodule (1) /  sso (1) /  swagger (1) /  tomcat (1) / 

#Java #Jersey #Restful

A Jersey POJOMapping Example in Mapping Form Parameters

Jersey, RESTful Web Services in Java. In Java Servlet circumstance, we usually harvest the form parameters by using request.getParameter(“FORM_FIELD_NAME”) syntax. Now we can do it more elegant while enabling Jsersey’s POJOMapping features. The following example demonstrates the account registration scenario. Here we have a Account class, i.e., Account.java: public class Account { private String email; @JsonProperty("email") public String getEmail() { return email; } public void setEmail(String email) { this. ...

Author Jen-Ming Chung
#Java #jsoup

How to solve jsoup does not get complete HTML document

jsoup: Java HTML Parser. Where crawling web pages by using jsoup, it only returns parts of HTML content if the document size is too large, e.g., the below example transferred over 6MB content. According to the jsoup’s API Reference the default maximum is 1MB. So that we can set jsoup connection with maxBodySize to zero to get rid of this limitation and may accompany with sufficient timeout property. ...

Author Jen-Ming Chung

Posts

Author Jen-Ming Chung
© 2019
Latest Posts Github LinkedIn