org.apache.abdera.i18n.iri
Class AbstractScheme

java.lang.Object
  extended by org.apache.abdera.i18n.iri.AbstractScheme
All Implemented Interfaces:
Scheme
Direct Known Subclasses:
DefaultScheme

public abstract class AbstractScheme
extends Object
implements Scheme

Base implementation for IRI scheme providers


Field Summary
protected  String name
           
protected  int port
           
 
Constructor Summary
protected AbstractScheme(String name, int port)
           
 
Method Summary
 int getDefaultPort()
           
 String getName()
           
 IRI normalize(IRI iri)
          Default return unmodified
 String normalizePath(String path)
          Default return unmodified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected final String name

port

protected final int port
Constructor Detail

AbstractScheme

protected AbstractScheme(String name,
                         int port)
Method Detail

getDefaultPort

public int getDefaultPort()
Specified by:
getDefaultPort in interface Scheme

getName

public String getName()
Specified by:
getName in interface Scheme

normalize

public IRI normalize(IRI iri)
Default return unmodified

Specified by:
normalize in interface Scheme

normalizePath

public String normalizePath(String path)
Default return unmodified

Specified by:
normalizePath in interface Scheme


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.