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 java.net.URL

            } else if (inLineWSDL != null) {
                wsdlElement = (OMElement) inLineWSDL;
                wsdlFound = true;
            } else if (wsdlURI != null) {
                try {
                  URL url = wsdlURI.toURL();
                    publishWSDL = url.toString();

                    OMNode node = SynapseConfigUtils.getOMElementFromURL(publishWSDL, synapseHome);
                    if (node instanceof OMElement) {
                        wsdlElement = (OMElement) node;
                    }
    View Full Code Here

    Examples of java.net.URL

            entryElement.addAttribute(fac.createOMAttribute(
                    "key", nullNS, entry.getKey().trim()));
            int type = entry.getType();
            if (type == Entry.URL_SRC) {
                URL srcUrl = entry.getSrc();
                if (srcUrl != null) {
                    entryElement.addAttribute(fac.createOMAttribute(
                            "src", nullNS, srcUrl.toString().trim()));
                }
            } else if (type == Entry.INLINE_XML) {
                Object value = entry.getValue();
                if (value != null && value instanceof OMElement) {
                    entryElement.addChild((OMElement) value);
    View Full Code Here

    Examples of java.net.URL

         
        } else if (name.equals("base")) {
           
            // BASE HREF=
            try {
              this.baseURL = new URL(element.getAttribute("href"));
              log.info("baseUR="+baseURL);
            } catch (MalformedURLException e) { }
           
        } else if (name.equals("frame")) {
         
    View Full Code Here

    Examples of java.net.URL

          } catch (UnsupportedEncodingException e) {
          }
        }
       
        try {
          URL u = null;
          if (this.baseURL != null) {
            u = new URL(this.baseURL,newURL);
          } else {
            u = new URL(url,newURL);
          }
          links.add(u);
        } catch (Exception e) {
          log.debug("error during link extraction: "+e.getMessage()+" "+newURL);
        }
    View Full Code Here

    Examples of java.net.URL

           tx =  (UserTransaction)new InitialContext().lookup("UserTransaction");
           tx.begin();
          
           log.debug("Execute SQL from resource: "+resource);

           URL url = Thread.currentThread().getContextClassLoader().getResource(resource);
          
           log.debug("Execute SQL from resource URL: "+url);
          
           String sql = getStringFromStream(url.openStream());
           sql = sql.replaceAll("(?m)^--([^\n]+)?$", ""); // Remove all commented lines
           final String[] statements ;
           if (useEOL) {
               statements = sql.split("[\n;]");
           } else {
    View Full Code Here

    Examples of java.net.URL

         * @param msgContext the message being sent
         * @throws AxisFault on error
         */
        private void sendAsyncRequest(EndpointReference epr, MessageContext msgContext) throws AxisFault {
            try {
                URL url = new URL(epr.getAddress());
                String host = url.getHost();
                int port = url.getPort();
                if (port == -1) {
                    // use default
                    if ("http".equals(url.getProtocol())) {
                        port = 80;
                    } else if ("https".equals(url.getProtocol())) {
                        port = 443;
                    }
                }
                HttpHost httpHost = new HttpHost(host, port, url.getProtocol());

                Axis2HttpRequest axis2Req = new Axis2HttpRequest(epr, httpHost, msgContext);
                Object timeout = msgContext.getProperty(NhttpConstants.SEND_TIMEOUT);
                if (timeout != null && timeout instanceof Long) {
                    axis2Req.setTimeout( (int) ((Long) timeout).longValue());
    View Full Code Here

    Examples of java.net.URL

    /**
    * Creates the actions used by menu items and toolbar widgets.
    */
    protected void makeActions() {
        URL url = getClass().getClassLoader().getResource(PRINT_ICON);
        String str = I18N.get(I18N.MENU_FILE_PREFIX, "SwingLE.action_print");
        printAction = new AbstractAction(str, new ImageIcon(url, str)) {
      public void actionPerformed(ActionEvent e) { printReport(); }
      };
        printAction.putValue(Action.SHORT_DESCRIPTION, str);
    View Full Code Here

    Examples of java.net.URL

    public class JSONCodecTest extends TestCase {
      public static String END_POINT = "http://localhost:8080/unitTest/json/parameter";
     
      protected String postOnEndPoint(String postBody) throws MalformedURLException, IOException {
        HttpURLConnection connection = (HttpURLConnection) new URL(END_POINT).openConnection();
        connection.setRequestProperty("Content-Type", "application/json");
        connection.setDoOutput(true);
        connection.getOutputStream().write(postBody.getBytes());
        BufferedReader bufReader = new BufferedReader(new InputStreamReader(connection.getResponseCode() < 300 ? connection.getInputStream() :
          connection.getErrorStream()));
    View Full Code Here

    Examples of java.net.URL

                        return;
                    }
                } else {
                    InputStream in = null;
                    try {
              URL url = new URL(uri);
              in = new BufferedInputStream(url.openStream());
              info("Found config override URI " + uri);
              temp.load(in);
            } catch (MalformedURLException e) {
                        warning("URI for override properties is malformed, skipping: " + uri);
                        return;
    View Full Code Here

    Examples of java.net.URL

      public void save_refer(SiteBean site, int ref_id, int ref_type, HttpServletRequest req){
        if(!saveRefer)
          return ;
        String refer = RequestUtils.getHeader(req, "refer");
        if(StringUtils.isNotEmpty(refer)){
          URL url;
          try {
            url = new URL(refer);
            String host = url.getHost();
            if(!StringUtils.equals(req.getServerName(),host)){
              ExternalReferBean rbean = new ExternalReferBean();
              rbean.setUrl(refer);
              rbean.setClientAddr(req.getRemoteAddr());
              rbean.setReferTime(new Date());
    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.