Examples of URL

Some strange example below:

@author william.liangf @author ding.lid @see java.net.URL @see java.net.URI
  • com.bleujin.framework.valid.validator.Url
  • com.borland.primetime.vfs.Url
  • com.cloudhopper.commons.util.URL
    rname [: password ]@] host [: port ][/path][?query_string][#anchor] The best method for creating a URL is to use the URLParser class. While this utility class doesn't provide any more features yet than the internal Java URL class, the plan is to add those in the future. Also, this class and its associated parser internally use the modern StringBuilder class vs. the StringBuffer class and avoid any synchronization overhead. @author joelauer (twitter: @jjlauer or http://twitter.com/jjlauer)
  • com.colorfulsoftware.rss.URL
    .law.harvard.edu/rss/rss.html">RSS 2.0 specification...

    This class models a <url> element in an rss feed.

    @author Bill Brown
  • com.cosmo.net.URL
    ycompany.com/?para1=aaa¶m2=bbb#myanchor}

    @author Gerard Llort
  • com.ctlok.springframework.web.servlet.view.rythm.tag.Url
    @author Lawrence Cheung
  • com.dianping.cat.home.heavy.entity.Url
  • com.github.jsonldjava.utils.URL
  • com.github.restdriver.serverdriver.http.Url
    Class to help with building of URLs.
  • com.google.api.gwt.samples.urlshortener.shared.Url
    Definition of a "URL" object. @author jasonhall@google.com (Jason Hall)
  • com.google.api.services.urlshortener.model.Url
    google.com/p/google-http-java-client/wiki/JSON">http://code.google.com/p/google-http-java-client/wiki/JSON

    @author Google, Inc.
  • com.google.speedtracer.client.util.Url
    Utility class for extracting parts of a URL String.
  • com.intellij.util.Url
  • com.jada.xml.sitemap.Url
  • com.mastfrog.url.URL
  • com.mockey.model.Url
    A Url is the specific http url of a Service.
  • com.ocpsoft.pretty.faces.url.URL
  • com.restfb.types.Url
    com">Mark Allen @deprecated As of 1.6.10, this type is deprecated and will be removed in a future release.
  • com.rosaloves.bitlyj.Url
  • com.sun.grizzly.util.net.URL
  • com.sun.star.util.URL
  • cosc561.searchengine.entities.Url
    @author jraymond
  • etch.util.URL
    password@host:port/uri;parms?terms#fragment
  • io.mola.galimatias.URL
    A parsed URL. Immutable.
  • java.net.URL
    ocs.uts.edu.au/MosaicDocs-old/url-primer.html"> http://www.socs.uts.edu.au/MosaicDocs-old/url-primer.html

    In general, a URL can be broken into several parts. The previous example of a URL indicates that the protocol to use is http (HyperText Transfer Protocol) and that the information resides on a host machine named www.socs.uts.edu.au. The information on that host machine is named /MosaicDocs-old/url-primer.html. The exact meaning of this name on the host machine is both protocol dependent and host dependent. The information normally resides in a file, but it could be generated on the fly. This component of the URL is called the path component.

    A URL can optionally specify a "port", which is the port number to which the TCP connection is made on the remote host machine. If the port is not specified, the default port for the protocol is used instead. For example, the default port for http is 80. An alternative port could be specified as:

     http://www.socs.uts.edu.au:80/MosaicDocs-old/url-primer.html 

    The syntax of URL is defined by RFC 2396: Uniform Resource Identifiers (URI): Generic Syntax, amended by RFC 2732: Format for Literal IPv6 Addresses in URLs. The Literal IPv6 address format also supports scope_ids. The syntax and usage of scope_ids is described here.

    A URL may have appended to it a "fragment", also known as a "ref" or a "reference". The fragment is indicated by the sharp sign character "#" followed by more characters. For example,

     http://java.sun.com/index.html#chapter1 

    This fragment is not technically part of the URL. Rather, it indicates that after the specified resource is retrieved, the application is specifically interested in that part of the document that has the tag chapter1 attached to it. The meaning of a tag is resource specific.

    An application can also specify a "relative URL", which contains only enough information to reach the resource relative to another URL. Relative URLs are frequently used within HTML pages. For example, if the contents of the URL:

     http://java.sun.com/index.html 
    contained within it the relative URL:
     FAQ.html 
    it would be a shorthand for:
     http://java.sun.com/FAQ.html 

    The relative URL need not specify all the components of a URL. If the protocol, host name, or port number is missing, the value is inherited from the fully specified URL. The file component must be specified. The optional fragment is not inherited.

    The URL class does not itself encode or decode any URL components according to the escaping mechanism defined in RFC2396. It is the responsibility of the caller to encode any fields, which need to be escaped prior to calling URL, and also to decode any escaped fields, that are returned from URL. Furthermore, because URL has no knowledge of URL escaping, it does not recognise equivalence between the encoded or decoded form of the same URL. For example, the two URLs:

        http://foo.com/hello world/ and http://foo.com/hello%20world
    would be considered not equal to each other.

    Note, the {@link java.net.URI} class does perform escaping of itscomponent fields in certain circumstances. The recommended way to manage the encoding and decoding of URLs is to use {@link java.net.URI}, and to convert between these two classes using {@link #toURI()} and{@link URI#toURL()}.

    The {@link URLEncoder} and {@link URLDecoder} classes can also beused, but only for HTML form encoding, which is not the same as the encoding scheme defined in RFC2396. @author James Gosling @version 1.136, 04/30/09 @since JDK1.0

  • net.csdn.common.path.Url
    BlogInfo: william Date: 11-9-26 Time: 上午10:31
  • net.fortuna.ical4j.model.property.Url
  • net.vidageek.crawler.Url
    @author jonasabreu
  • org.apache.abdera.ext.opensearch.model.Url
    Open Search 1.1 Url element: describes an interface by which a search client can make search requests.
    This supports all parts of the Open Search 1.1 Url specification.
  • org.apache.axis2.util.URL
  • org.apache.catalina.util.URL
    uthority><path>?<query>#<fragment>

    FIXME - This class really ought to end up in a Commons package someplace.

    @author Craig R. McClanahan @version $Revision: 466595 $ $Date: 2006-10-21 23:24:41 +0100 (Sat, 21 Oct 2006) $
  • org.apache.directory.ldapstudio.browser.core.model.URL
    An URL represents a LDAP URL. @author Apache Directory Project @version $Rev$, $Date$
  • org.apache.directory.studio.ldapbrowser.core.model.URL
    An URL represents a LDAP URL. @author Apache Directory Project @version $Rev$, $Date$
  • org.apache.etch.util.URL
    password@host:port/uri;parms?terms#fragment
  • org.apache.hadoop.yarn.api.records.URL

    URL represents a serializable {@link java.net.URL}.

  • org.apache.shindig.social.opensocial.model.Url
    The base interface of all Url objects.
  • org.apache.struts2.components.URL
    ost>:<port>/<context>/editUser.action?id=3333&name=John the generated url will be http://<host>:<port>/<context>/editUser.action?id=22&name=John because the parameter defined in the param tag will take precedence.

    Examples

      <-- Example 1 --> <s:url value="editGadget.action"> <s:param name="id" value="%{selected}" /> </s:url> <-- Example 2 --> <s:url action="editGadget"> <s:param name="id" value="%{selected}" /> </s:url> <-- Example 3--> <s:url includeParams="get"> <s:param name="id" value="%{'22'}" /> </s:url>  
    @see Param
  • org.apache.tomcat.util.net.URL
    uthority><path>?<query>#<fragment>

    FIXME - This class really ought to end up in a Commons package someplace.

    @author Craig R. McClanahan @version $Revision: 466585 $ $Date: 2006-10-21 23:16:34 +0100 (Sat, 21 Oct 2006) $
  • org.apache.wicket.ng.request.Url
  • org.apache.wicket.request.Url
    ame:1234/foo/bar?a=b - protocol: http, host: hostname, port: 1234, segments: ["foo","bar"]
  • //hostname:1234/foo/bar?a=b - protocol: null, host: hostname, port: 1234, segments: ["foo","bar"]
  • foo/bar/baz?a=1&b=5 - segments: ["foo","bar","baz"], query parameters: ["a"="1", "b"="5"]
  • foo/bar//baz?=4&6 - segments: ["foo", "bar", "", "baz"], query parameters: [""="4", "6"=""]
  • /foo/bar/ - segments: ["", "foo", "bar", ""]
  • foo/bar// - segments: ["foo", "bar", "", ""]
  • ?a=b - segments: [ ], query parameters: ["a"="b"]
  • The Url class takes care of encoding and decoding of the segments and parameters. @author Matej Knopp @author Igor Vaynberg
  • org.b3log.solo.model.sitemap.URL
    3log.org">Liang Ding @version 1.1.0.0, Sep 22, 2011 @since 0.3.1
  • org.hibernate.validator.constraints.URL
  • org.jboss.as.controller.descriptions.ModelDescriptionConstants.URL
  • org.jboss.as.security.Constants.URL
  • org.qi4j.test.indexing.model.URL
    JAVADOC Add JavaDoc.
  • org.rhq.plugins.netservices.HTTPNetServiceComponent.ConfigKeys.URL
  • org.wso2.carbon.registry.social.api.people.userprofile.model.Url
  • org.xrace.desjardins.reponse.Url
    Class Url. @version $Revision$ $Date$
  • org.xrace.desjardins.request.Url
    Class Url. @version $Revision$ $Date$
  • org.xrace.desjardins.trx.Url
    Class Url. @version $Revision$ $Date$
  • org.xtext.httprouting.route.URL
    A representation of the model object 'URL'.

    The following features are supported:

    @see org.xtext.httprouting.route.RoutePackage#getURL() @model @generated
  • org.yinwang.pysonar.ast.Url
    virtual-AST node used to represent virtual source locations for builtins as external urls.
  • railo.runtime.type.scope.URL
    inteface for the url scope
  • smartrics.rest.fitnesse.fixture.support.Url
    Facade to {@link java.net.URL}. Just to offer a REST oriented interface. @author smartrics

  • Examples of com.rosaloves.bitlyj.Url

          ServletContext servletContext = this.getServletContext();
          JSONObject config = ConfigFetcher.getJsonObjectFromPath(servletContext.getRealPath("/"));
          String bitlyApiKey = config.getString(SettingKeys.BITLY_API_KEY);
          String bitlyUsername = config.getString(SettingKeys.BITLY_USERNAME);
          LOGGER.info("issuing bitly call for url " + longUrlString);
          Url url = as(bitlyUsername, bitlyApiKey).call(shorten(longUrlString));
          LOGGER.info("bitly call done");
          shortUrl = url.getShortUrl();
          LOGGER.info("retrieved short url: " + shortUrl);
        } catch (Exception e) {
          LOGGER.log(Level.SEVERE, "exception", e);
          throw new FetchException("Unable to create short url", e);
        }
    View Full Code Here

    Examples of com.sun.grizzly.util.net.URL

        }

        private boolean doIsEncodeable(Request hreq, Session session,
                                       String location){
            // Is this a valid absolute URL?
            URL url = null;
            try {
                url = new URL(location);
            } catch (MalformedURLException e) {
                return (false);
            }

            // Does this URL match down to (and including) the context path?
            if (!hreq.getScheme().equalsIgnoreCase(url.getProtocol()))
                return (false);
            if (!hreq.getServerName().equalsIgnoreCase(url.getHost()))
                return (false);
            int serverPort = hreq.getServerPort();
            if (serverPort == -1) {
                if ("https".equals(hreq.getScheme()))
                    serverPort = 443;
                else
                    serverPort = 80;
            }
            int urlPort = url.getPort();
            if (urlPort == -1) {
                if ("https".equals(url.getProtocol()))
                    urlPort = 443;
                else
                    urlPort = 80;
            }
            if (serverPort != urlPort)
                return (false);

            Context ctx = getContext();
            if (ctx != null) {
                String contextPath = ctx.getPath();
                if (contextPath != null) {
                    String file = url.getFile();
                    if ((file == null) || !file.startsWith(contextPath)) {
                        return false;
                    }
                    String sessionParamName = ctx.getSessionParameterName();
                    if (file.indexOf(";" + sessionParamName + "=" +
    View Full Code Here

    Examples of com.sun.star.util.URL

                    UnoRuntime.queryInterface(XDispatchProvider.class,Desk);

            XDispatch getting = null;

            log.println( "opening QueryDesign" );
            URL the_url = new URL();
            the_url.Complete = ".component:DB/QueryDesign";
            getting = aProv.queryDispatch(the_url,"Query",12);
            PropertyValue[] Args = new PropertyValue[2];
            PropertyValue param1 = new PropertyValue();
            param1.Name = "DataSourceName";
    View Full Code Here

    Examples of cosc561.searchengine.entities.Url

        @PersistenceContext(unitName = "SearchEnginePU")
        private EntityManager entityManager;

        public void runUrlScanner()
        {
            Url url = entityManager.createNamedQuery("Url.findByStatus", Url.class).setParameter("status", UrlStatus.NEW).setMaxResults(1).getSingleResult();
            Document document = null;

            url.setStatus(UrlStatus.SCANNING);
            entityManager.flush();

            // Test url if valid
            try
            {
                document = Jsoup.connect(url.getId()).get();
            }
            catch (IOException ex)
            {
                logger.log(Level.SEVERE, null, ex);
                url.setStatus(UrlStatus.ERROR);
                return;
            }

            // Parse and add new urls
            Elements links = document.select("a[href]");
            Set<Url> urls = new HashSet<>();

            System.out.println("URL: " + url);
            System.out.println("Links: " + links.size());
            for (Element link : links)
            {
                System.out.println("\t" + link.attr("abs:href") + " (" + link.text() + ")");
                urls.add(new Url(link.attr("abs:href"), UrlStatus.NEW));
            }

            for (Url currentUrl : urls)
            {
                try
                {
                    entityManager.persist(currentUrl);
                }
                catch(Exception e)
                {
                    logger.log(Level.SEVERE, "Exception: " + url + " already exists", e);
                }
            }

            url.setDocument(document.html());
            url.setStatus(UrlStatus.SCANNED);
            url.setScannedOn(new Date());
        }
    View Full Code Here

    Examples of etch.util.URL

      @Override
      public DeliveryService newTransport( String uri, Resources resources )
        throws Exception
      {
        URL u = new URL( uri );

        TransportData c = new Tcp2Connection( u, resources );

        TransportPacket p = new Packetizer( c, u, resources );
    View Full Code Here

    Examples of io.mola.galimatias.URL

                }
            }
            if ("".equals(trimHtmlSpaces(literal.toString()))) {
                throw newDatatypeException("Must be non-empty.");
            }
            URL url = null;
            URLParsingSettings settings = URLParsingSettings.create().withErrorHandler(
                    StrictErrorHandler.getInstance());
            boolean data = false;
            try {
                CharSequencePair pair = splitScheme(literal);
    View Full Code Here

    Examples of java.net.URL

      private VDBRepository vdbRepository;
     

      public void start() {
        try {
          URL url = Thread.currentThread().getContextClassLoader().getResource(CoreConstants.SYSTEM_VDB);
          if (url == null) {
            throw new TeiidRuntimeException(RuntimeMetadataPlugin.Util.getString("system_vdb_not_found")); //$NON-NLS-1$
          }
          // uri conversion is only to remove the spaces in URL, note this only with above kind situation 
          URI uri = new URI(url.getProtocol(), url.getPath(), null);
          this.vdbRepository.setSystemStore(new IndexMetadataFactory(uri.toURL()).getMetadataStore(null));
        } catch (URISyntaxException e) {
          throw new TeiidRuntimeException(e, RuntimePlugin.Util.getString("system_vdb_load_error")); //$NON-NLS-1$
        } catch (IOException e) {
          throw new TeiidRuntimeException(e, RuntimePlugin.Util.getString("system_vdb_load_error")); //$NON-NLS-1$
    View Full Code Here

    Examples of java.net.URL

          // jdk1.1/docs/guide/misc/resources.html
          Utils utils = new Utils();
          Enumeration<URL> urls = utils.getClass().getClassLoader().getResources(resourceName);
          boolean first = true;
          while (urls.hasMoreElements()) {
      URL url = urls.nextElement();
      if (first) {
        defaultProps.load(url.openStream());
        first = false;
      }
      else {
        Properties props = new Properties(defaultProps);
        props.load(url.openStream());
        defaultProps = props;
      }
          }
        } catch (Exception ex) {
          System.err.println("Warning, unable to load properties file(s) from "
    View Full Code Here

    Examples of java.net.URL

       * configure URLCheck
       */
      private void addCookie() {
        String cookieStr = JOptionPane.showInputDialog(this, "Cookie string:");
        String domain = JOptionPane.showInputDialog(this, "Domain:");
        URL url;
      try {
        url = new URL("http://"+domain);
      } catch (MalformedURLException e1) {
        JOptionPane.showMessageDialog(this, "Domain invalid: "+e1.getMessage());
        return;
      }
      try {
    View Full Code Here

    Examples of java.net.URL

      private boolean updateRobotFromDialog() {

        // start URL
        String startUrl = urlField.getText();
        try {
          URL u = new URL(startUrl);
          jobobase.getRobot().setStartURL(u);
        } catch (MalformedURLException e) {
          JOptionPane.showMessageDialog(this,"URL "+startUrl+" is invalid");
          return false;
        }
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.