All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.urin.Urin Maven / Gradle / Ivy

/*
 * Copyright 2012 Mark Slater
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
 *
 * 	http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 */

package net.sourceforge.urin;

/**
 * A URI.
 * 

* RFC 3986 specifies that a URI is made up of mandatory scheme and hierarchical part components, and optional query * and fragment components. *

* Immutable and threadsafe. * * @param The type of {@code Query} used by this URI. * @see RFC 3986 - Syntax Components */ public abstract class Urin extends UrinReference { Urin() { // deliberately empty } /** * Resolves the given {@code UrinReference} relative to this. * * @param urinReference a {@code UrinReference} to resolve relative to this. * @return the {@code Urin} resulting from resolving the give {@code UrinReference} relative to this. * @see RFC 3986 - Reference Resolution */ public abstract Urin resolve(final UrinReference urinReference); @Override Urin resolve(final Scheme scheme, final Path path) { return this; } @Override Urin resolve(final Scheme scheme, final Authority authority, final Path path) { return this; } @Override Urin resolve(final Scheme scheme, final Path path, final Query query) { return this; } @Override Urin resolve(final Scheme scheme, final Authority authority, final Path path, final Query query) { return this; } @Override Urin resolve(final Scheme scheme, final Path path, final Query query, final Fragment fragment) { return this; } @Override Urin resolve(final Scheme scheme, final Authority authority, final Path path, final Query query, final Fragment fragment) { return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy