Code example for SocketPermission

    public Permission getPermission() throws IOException {
        String connectToAddress = getConnectToHost() + ":" + getConnectToPort();
        return new SocketPermission(connectToAddress, "connect, resolve");
    public String getRequestProperty(String field) {
        if (null == field) {
            return null; 
        return requestHeader.get(field);
     * Returns the characters up to but not including the next "\r\n", "\n", or 
     * the end of the stream, consuming the end of line delimiter. 
Stop searching for code, let great code find you!  Add Codota to your java IDE