Package org.exolab.jms.net.uri

Examples of org.exolab.jms.net.uri.URI


     * Populates the supplied properties with connection accept properties.
     *
     * @param properties the properties to populate
     */
    protected void populateAcceptProperties(Properties properties) {
        URI uri = getURI(getExportURI());
        RMIRequestInfo info = new RMIRequestInfo(uri);
        RmiConfiguration config = getConfiguration().getRmiConfiguration();

        info.setEmbedRegistry(config.getEmbeddedRegistry());
        info.export(properties);
View Full Code Here


     * @return the modified provider URI
     * @throws ConfigurationException if <code>uri</code> is invalid
     */
    private String getProviderURI(String uri)
            throws ConfigurationException {
        URI parsed;
        try {
            parsed = new URI(uri);
            String scheme = parsed.getScheme();
            if (scheme.equals(HTTP_SCHEME) || scheme.equals(HTTPS_SCHEME)) {
                String path = parsed.getPath();
                if (path == null || path.length() == 0 || path.equals("/")) {
                    parsed.setPath(SERVLET);
                }
            } else if (scheme.equals(EMBEDDED_SCHEME)) {
                parsed.setScheme(VM_SCHEME);
                parsed.setPath(VM_PATH);
            }
        } catch (IOException exception) {
            throw new ConfigurationException(exception.getMessage());
        }
        return parsed.toString();
    }
View Full Code Here

     * Populates the supplied properties with connection accept properties.
     *
     * @param properties the properties to populate
     */
    protected void populateAcceptProperties(Properties properties) {
        URI uri = getURI(getExportURI());
        SocketRequestInfo info;
        try {
            info = new SocketRequestInfo(uri);
        } catch (ResourceException exception) {
            // should never happen
View Full Code Here

     * @param host   the host
     * @param port   the port
     * @return a new <code>URI</code>
     */
    protected URI getURI(String scheme, String host, int port) {
        URI result;
        try {
            result = URIHelper.create(scheme, getHost(host), port);
        } catch (InvalidURIException exception) {
            throw new IllegalStateException("Failed to create URI: "
                                            + exception);
View Full Code Here

     * @param path   the path
     * @return a new <ocde>URI</ocde>
     */
    protected URI getURI(String scheme, String host, int port,
                         String path) {
        URI result;
        try {
            result = URIHelper.create(scheme, getHost(host), port, path);
        } catch (InvalidURIException exception) {
            throw new IllegalStateException("Failed to create URI: "
                                            + exception);
View Full Code Here

     * @param uri the URI to parse.
     * @return the parsed URI
     * @throws IllegalStateException if the URI is invalid
     */
    protected URI getURI(String uri) {
        URI result;
        try {
            result = URIHelper.parse(uri);
        } catch (InvalidURIException exception) {
            throw new IllegalStateException("Failed to parse URI: " + uri);
        }
View Full Code Here

     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
            throws Exception {
        return new URIRequestInfo(new URI("vm://"));
    }
View Full Code Here

     *         acceptor
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getAcceptorConnectionRequestInfo()
            throws Exception {
        return new URIRequestInfo(new URI("vm://"));
    }
View Full Code Here

     * @return connection request info for creating a managed connection
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getManagedConnectionRequestInfo()
        throws Exception {
        return new URIRequestInfo(new URI("vm://"));
    }
View Full Code Here

     * acceptor
     * @throws Exception for any error
     */
    protected ConnectionRequestInfo getAcceptorConnectionRequestInfo()
        throws Exception {
        return new URIRequestInfo(new URI("vm://"));
    }
View Full Code Here

TOP

Related Classes of org.exolab.jms.net.uri.URI

Copyright © 2018 www.massapicom. 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.