net.loginbuddy.common/src/main/java/net/loginbuddy/common/api/HttpHelper.java
/**
   * Read message body from POST or PUT request
   */
Read message body from POST or PUT request
Read message body from POST or PUT request
public static String readMessageBody(BufferedReader reader) throws IOException {
    StringBuilder sb = new StringBuilder();
    String nextLine = "";
    while((nextLine = reader.readLine()) != null) {
      sb.append(nextLine);
    }
    return sb.toString().trim();
  }
public static String readMessageBody ( BufferedReader reader ) throws IOException { StringBuilder sb = new StringBuilder ( ) ; String nextLine = "" ; while ( ( nextLine = reader . readLine ( ) ) != null ) { sb . append ( nextLine ) ; } return sb . toString ( ) . trim ( ) ; }
Read message body from POST or PUT request
Read message body from POST or PUT request