Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String getNtripString(String ggaString, String mountPoint, String base64password) {
        StringBuilder result = new StringBuilder("GET /");
        result.append(mountPoint);
        result.append(
                " HTTP/1.0\r\nUser-Agent: NTRIP goGPSprojectJava\r\nAccept: */*\r\nConnection: close\r\nAuthorization: Basic ");
        result.append(base64password);
        result.append("\r\n\r\n");
        return result.toString();
    }
}