Package com.sun.ts.lib.porting
Class TSURL
java.lang.Object
com.sun.ts.lib.porting.TSURL
- All Implemented Interfaces:
- TSURLInterface,- Serializable
This is a Java EE Reference specific implementation of the TSURLInterface which is to be used for Java EE TCK
 testing. TS tests use this interface to obtain the URL String to use to access a given web component. If a given Java
 EE Server implmentation requires that URLs be created in a different manner, then this implementation can be
 replaced.
- Author:
- Kyle Grucci
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetRequest(String request) This method is called by TS tests to get the request string to use to access a given web component.This method is called by TS tests to get the URL to use to access a given web component.getURLString(String protocol, String host, int port, String file) This method is called by TS tests to get the URL to use to access a given web component.
- 
Constructor Details- 
TSURLpublic TSURL()
- 
TSURL
 
- 
- 
Method Details- 
getURLThis method is called by TS tests to get the URL to use to access a given web component.- Specified by:
- getURLin interface- TSURLInterface
- Parameters:
- protocol- - the name of the protocol.
- host- - the name of the host.
- port- - the port number.
- file- - the host file.
- Returns:
- a valid URL object.
- Throws:
- MalformedURLException
 
- 
getURLStringThis method is called by TS tests to get the URL to use to access a given web component.- Specified by:
- getURLStringin interface- TSURLInterface
- Parameters:
- protocol- - the name of the protocol.
- host- - the name of the host.
- port- - the port number.
- file- - the host file.
- Returns:
- a valid URL as a String.
 
- 
getRequestThis method is called by TS tests to get the request string to use to access a given web component.- Specified by:
- getRequestin interface- TSURLInterface
- Parameters:
- request- - the request file.
- Returns:
- a valid String object.
 
 
-