SlideShare une entreprise Scribd logo
1  sur  12
UNIFORM RESOURCE LOCATOR IN JAVA
M.Rajshree
M.sc(IT)
Nadar saraswathi college of arts&science
UNIFORM RESOURCE LOCATOR
 URL stands for Uniform Resource Locator is the
global address of documents and other
resources on the World Wide Web. Its main
purpose is to identify the location of a document
and other resources available on the internet,
and specify the mechanism for accessing it
through a web browser.
 An example of a URL is
https://www.computerhope.com, which is
the URL for the Computer Hope website.
Overview of a URL.
A URL (Uniform Resource Locator) is a
unique identifier used to locate a resource
on the internet. It is also referred to as a
web address.
URLs consist of multiple parts including a
protocol and domain name that tell a web
browser how and where to retrieve a
resource
The URL contains the name of the protocol
needed to access a resource, as well as a
resource name
COMPONENTS OF A URL
 The protocol or scheme. Used to access a
resource on the internet. Protocols include http,
https, ftp, and file. The resource is reached
through the domain name system name. In this
example, the protocol is https.
 Host name or domain name. The unique
reference the represents a webpage. For this
example, whatis.techtarget.com.
 Port name. Usually not visible in URLs, but
necessary. Always following a colon, port 80 is
the default port for web servers, but there are
other options. For example, :port80.
 Path. A path refers to a file or location on the
web server. For this example, search/query.
 Query Found in the URL of dynamic page. The
query consists of a question mark, followed by
parameters. For this example, ?
 Parameters Pieces of information in a query
string of a URL. Multiple parameters can be
separated by ampersands (&) For this example,
q=URL
 Fragment. This is an internal page reference,
which refers to a section within the webpage. It
appears at the end of a URL and begins with a
hashtag (#)
PROTOCOL IDENTIFIER
 Note that the protocol identifier and the resource name
are separated by a colon and two forward slashes.
 The protocol identifier indicates the name of the protocol
to be used to fetch the resource.
 The example uses the Hypertext Transfer Protocol
(HTTP), which is typically used to serve up hypertext
documents. HTTP is just one of many different protocols
used to access different types of resources on the net.
 Other protocols include File Transfer Protocol (FTP),
Gopher, File, and News.
RESOURCE NAME
 The resource name is the complete address to the
resource.
 The format of the resource name depends entirely on the
protocol used,
but for many protocols, including HTTP, the resource name
contains one
or more of the following components:
Host Name
The name of the machine on which the resource lives.
Filename
The pathname to the file on the machine.
Port Number
The port number to which to connect (typically optional).
REQUIRED DATA
 For many protocols, the host name and the
filename are required, while the port number and
reference are optional.
 For example, the resource name for an HTTP
URL must specify a server on the network (Host
Name) and the path to the document on that
machine (Filename).
 It also can specify a port number and a
reference.
CONSTRUCTING A URL
 The easiest way to create a URL object is from a
String that represents the human-readable form of
the URL address.
 In your Java program, you can use a String
containing this text to create a URL object:
URL myURL = new URL("http://example.com/");
 The URL object created above represents an
absolute URL.
An absolute URL contains all of the information
necessary to reach the resource in question.
 You can also create URL objects from a relative URL
address.
 A relative URL contains only enough information to
reach the resource relative to (or in the context of)
another URL.
 The URL is the address of a website. You can find it in
the address bar of your web browser. Alternatively, you
can find the URL for a link by right-clicking it and
copying the link
 Your computer's URL code (or Internet address, or IP
address) is the address that other computers enter in
to access your computer across the Internet. This is a
four-section number, such as 123.456.78.90.
 The URL (uniform resource locater) means the address
to something on the internet. It could be a webpage, file,
or a picture. In the case of Youtube, it is the address of
where a particular video is located

Contenu connexe

Tendances

Internet basics
Internet basicsInternet basics
Internet basics
osuchin
 
Web publishing
Web publishingWeb publishing
Web publishing
Kanav Sood
 

Tendances (20)

Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internet
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Internet basic
Internet basicInternet basic
Internet basic
 
Html
HtmlHtml
Html
 
Search Engines & Web Browser & Internet & World wide Web (WWW)
Search Engines & Web Browser & Internet & World wide Web (WWW)Search Engines & Web Browser & Internet & World wide Web (WWW)
Search Engines & Web Browser & Internet & World wide Web (WWW)
 
How Internet Works
How Internet WorksHow Internet Works
How Internet Works
 
world wide web
world wide webworld wide web
world wide web
 
Internet basics
Internet basicsInternet basics
Internet basics
 
Presentation on World Wide Web (WWW)
Presentation on World Wide Web (WWW)Presentation on World Wide Web (WWW)
Presentation on World Wide Web (WWW)
 
internet and its services
internet and its servicesinternet and its services
internet and its services
 
world wide web
world wide webworld wide web
world wide web
 
Presentation on web browser
Presentation on web browserPresentation on web browser
Presentation on web browser
 
Web technology
Web technologyWeb technology
Web technology
 
Web browser(pp ts)
Web browser(pp ts)Web browser(pp ts)
Web browser(pp ts)
 
Internet
InternetInternet
Internet
 
Basic concept of internet
Basic concept of internetBasic concept of internet
Basic concept of internet
 
Web publishing
Web publishingWeb publishing
Web publishing
 
World wide web ppt
World wide web pptWorld wide web ppt
World wide web ppt
 
Ppt on internet
Ppt on internetPpt on internet
Ppt on internet
 

Similaire à uniform resource locator

Final Url
Final UrlFinal Url
Final Url
naly01
 
Jhalak And Sheenal final Url
Jhalak And Sheenal  final UrlJhalak And Sheenal  final Url
Jhalak And Sheenal final Url
naly01
 
URL JS
URL JSURL JS
URL JS
naly01
 
Lecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptxLecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptx
Kevi20
 
Deploying RDF Linked Data via Virtuoso Universal Server
Deploying RDF Linked Data via Virtuoso Universal ServerDeploying RDF Linked Data via Virtuoso Universal Server
Deploying RDF Linked Data via Virtuoso Universal Server
rumito
 
Web programming lec#3
Web programming lec#3Web programming lec#3
Web programming lec#3
Nisa Soomro
 
Chap 9 report (1st time upload/experiment)
Chap 9 report (1st time upload/experiment)Chap 9 report (1st time upload/experiment)
Chap 9 report (1st time upload/experiment)
Ayitah Tallada
 

Similaire à uniform resource locator (20)

Domain_Hosting.docx
Domain_Hosting.docxDomain_Hosting.docx
Domain_Hosting.docx
 
Final Url
Final UrlFinal Url
Final Url
 
Jhalak And Sheenal final Url
Jhalak And Sheenal  final UrlJhalak And Sheenal  final Url
Jhalak And Sheenal final Url
 
URL JS
URL JSURL JS
URL JS
 
search engine best ppt
search engine best pptsearch engine best ppt
search engine best ppt
 
Lecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptxLecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptx
 
Deploying RDF Linked Data via Virtuoso Universal Server
Deploying RDF Linked Data via Virtuoso Universal ServerDeploying RDF Linked Data via Virtuoso Universal Server
Deploying RDF Linked Data via Virtuoso Universal Server
 
Internet
InternetInternet
Internet
 
Web engineering
Web engineeringWeb engineering
Web engineering
 
Bootcamp - Web Development Session 1
Bootcamp - Web Development Session 1Bootcamp - Web Development Session 1
Bootcamp - Web Development Session 1
 
World Wide Web
World Wide WebWorld Wide Web
World Wide Web
 
Unit 3 - URLs and URIs
Unit 3 - URLs and URIsUnit 3 - URLs and URIs
Unit 3 - URLs and URIs
 
Web Browser Basics, Tips & Tricks - Draft 20 (Revised 5/18/17)
Web Browser Basics, Tips & Tricks - Draft 20 (Revised 5/18/17)Web Browser Basics, Tips & Tricks - Draft 20 (Revised 5/18/17)
Web Browser Basics, Tips & Tricks - Draft 20 (Revised 5/18/17)
 
Web programming lec#3
Web programming lec#3Web programming lec#3
Web programming lec#3
 
Chap 9 report (1st time upload/experiment)
Chap 9 report (1st time upload/experiment)Chap 9 report (1st time upload/experiment)
Chap 9 report (1st time upload/experiment)
 
Hacia la Internet del Futuro: Web Semántica y Open Linked Data, Parte 2
Hacia la Internet del Futuro: Web Semántica y Open Linked Data, Parte 2Hacia la Internet del Futuro: Web Semántica y Open Linked Data, Parte 2
Hacia la Internet del Futuro: Web Semántica y Open Linked Data, Parte 2
 
Www and http
Www and httpWww and http
Www and http
 
The introduction of RESTful
The introduction of RESTful The introduction of RESTful
The introduction of RESTful
 
Linked data HHS 2015
Linked data HHS 2015Linked data HHS 2015
Linked data HHS 2015
 
Web Programming HTML.pptx
Web Programming HTML.pptxWeb Programming HTML.pptx
Web Programming HTML.pptx
 

Plus de rajshreemuthiah (20)

oracle
oracleoracle
oracle
 
quality
qualityquality
quality
 
bigdata
bigdatabigdata
bigdata
 
polymorphism
polymorphismpolymorphism
polymorphism
 
solutions and understanding text analytics
solutions and understanding text analyticssolutions and understanding text analytics
solutions and understanding text analytics
 
interface
interfaceinterface
interface
 
Testing &ampdebugging
Testing &ampdebuggingTesting &ampdebugging
Testing &ampdebugging
 
concurrency control
concurrency controlconcurrency control
concurrency control
 
Education
EducationEducation
Education
 
Formal verification
Formal verificationFormal verification
Formal verification
 
Transaction management
Transaction management Transaction management
Transaction management
 
Multi thread
Multi threadMulti thread
Multi thread
 
System testing
System testingSystem testing
System testing
 
software maintenance
software maintenancesoftware maintenance
software maintenance
 
exception handling
exception handlingexception handling
exception handling
 
e governance
e governancee governance
e governance
 
recovery management
recovery managementrecovery management
recovery management
 
Implementing polymorphism
Implementing polymorphismImplementing polymorphism
Implementing polymorphism
 
Buffer managements
Buffer managementsBuffer managements
Buffer managements
 
os linux
os linuxos linux
os linux
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Dernier (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

uniform resource locator

  • 1. UNIFORM RESOURCE LOCATOR IN JAVA M.Rajshree M.sc(IT) Nadar saraswathi college of arts&science
  • 2. UNIFORM RESOURCE LOCATOR  URL stands for Uniform Resource Locator is the global address of documents and other resources on the World Wide Web. Its main purpose is to identify the location of a document and other resources available on the internet, and specify the mechanism for accessing it through a web browser.  An example of a URL is https://www.computerhope.com, which is the URL for the Computer Hope website. Overview of a URL.
  • 3. A URL (Uniform Resource Locator) is a unique identifier used to locate a resource on the internet. It is also referred to as a web address. URLs consist of multiple parts including a protocol and domain name that tell a web browser how and where to retrieve a resource The URL contains the name of the protocol needed to access a resource, as well as a resource name
  • 4.
  • 5.
  • 6. COMPONENTS OF A URL  The protocol or scheme. Used to access a resource on the internet. Protocols include http, https, ftp, and file. The resource is reached through the domain name system name. In this example, the protocol is https.  Host name or domain name. The unique reference the represents a webpage. For this example, whatis.techtarget.com.  Port name. Usually not visible in URLs, but necessary. Always following a colon, port 80 is the default port for web servers, but there are other options. For example, :port80.  Path. A path refers to a file or location on the web server. For this example, search/query.
  • 7.  Query Found in the URL of dynamic page. The query consists of a question mark, followed by parameters. For this example, ?  Parameters Pieces of information in a query string of a URL. Multiple parameters can be separated by ampersands (&) For this example, q=URL  Fragment. This is an internal page reference, which refers to a section within the webpage. It appears at the end of a URL and begins with a hashtag (#)
  • 8. PROTOCOL IDENTIFIER  Note that the protocol identifier and the resource name are separated by a colon and two forward slashes.  The protocol identifier indicates the name of the protocol to be used to fetch the resource.  The example uses the Hypertext Transfer Protocol (HTTP), which is typically used to serve up hypertext documents. HTTP is just one of many different protocols used to access different types of resources on the net.  Other protocols include File Transfer Protocol (FTP), Gopher, File, and News.
  • 9. RESOURCE NAME  The resource name is the complete address to the resource.  The format of the resource name depends entirely on the protocol used, but for many protocols, including HTTP, the resource name contains one or more of the following components: Host Name The name of the machine on which the resource lives. Filename The pathname to the file on the machine. Port Number The port number to which to connect (typically optional).
  • 10. REQUIRED DATA  For many protocols, the host name and the filename are required, while the port number and reference are optional.  For example, the resource name for an HTTP URL must specify a server on the network (Host Name) and the path to the document on that machine (Filename).  It also can specify a port number and a reference.
  • 11. CONSTRUCTING A URL  The easiest way to create a URL object is from a String that represents the human-readable form of the URL address.  In your Java program, you can use a String containing this text to create a URL object: URL myURL = new URL("http://example.com/");  The URL object created above represents an absolute URL. An absolute URL contains all of the information necessary to reach the resource in question.  You can also create URL objects from a relative URL address.  A relative URL contains only enough information to reach the resource relative to (or in the context of) another URL.
  • 12.  The URL is the address of a website. You can find it in the address bar of your web browser. Alternatively, you can find the URL for a link by right-clicking it and copying the link  Your computer's URL code (or Internet address, or IP address) is the address that other computers enter in to access your computer across the Internet. This is a four-section number, such as 123.456.78.90.  The URL (uniform resource locater) means the address to something on the internet. It could be a webpage, file, or a picture. In the case of Youtube, it is the address of where a particular video is located