Top Constructors Methods
org.apache.catalina.webresources.war

public Class Handler

extends URLStreamHandler
Class Inheritance
Imports
java.io.IOException, java.net.URL, .URLConnection, .URLStreamHandler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected URLConnection
openConnection(URL
the URL that this connects to.
u
)

Implements abstract java.net.URLStreamHandler.openConnection.

Opens a connection to the object referenced by the URL argument.

protected void
setURL(URL
the URL to modify.
u
,
String
the protocol name.
protocol
,
String
the remote host value for the URL.
host
,
int
the port on the remote machine.
port
,
String
the authority part for the URL.
authority
,
String
the userInfo part of the URL.
userInfo
,
String
the path component of the URL.
path
,
String
the query part for the URL.
query
,
String
the reference.
ref
)

Overrides java.net.URLStreamHandler.setURL.

Sets the fields of the URL argument to the indicated values.

Inherited from java.net.URLStreamHandler:
equalsgetDefaultPortgetHostAddresshashCodehostsEqualopenConnectionparseURLsameFilesetURLtoExternalForm

Constructor Detail

Handlerback to summary
public Handler()

Method Detail

openConnectionback to summary
protected URLConnection openConnection(URL u) throws IOException

Implements abstract java.net.URLStreamHandler.openConnection.

Doc from java.net.URLStreamHandler.openConnection.

Opens a connection to the object referenced by the URL argument. This method should be overridden by a subclass.

If for the handler's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned.

Parameters
u:URL

the URL that this connects to.

Returns:URLConnection

a URLConnection object for the URL.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs while opening the connection.
setURLback to summary
protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref)

Overrides java.net.URLStreamHandler.setURL.

Doc from java.net.URLStreamHandler.setURL.

Sets the fields of the URL argument to the indicated values. Only classes derived from URLStreamHandler are able to use this method to set the values of the URL fields.

Parameters
u:URL

the URL to modify.

protocol:String

the protocol name.

host:String

the remote host value for the URL.

port:int

the port on the remote machine.

authority:String

the authority part for the URL.

userInfo:String

the userInfo part of the URL.

path:String

the path component of the URL.

query:String

the query part for the URL.

ref:String

the reference.

Annotations
@Override