Code example for SocketPermission

0
    } 
 
    @Override 
    public Permission getPermission() throws IOException {
        String connectToAddress = getConnectToHost() + ":" + getConnectToPort();
        return new SocketPermission(connectToAddress, "connect, resolve");
    } 
 
    @Override 
    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. 
     */ 
    static String readLine(InputStream is) throws IOException {