Package org.apache.etch.util

Examples of org.apache.etch.util.URL


   * @param class2type the class to type map for this instance of value factory.
   */
  public DefaultValueFactory( String uri, TypeMap types,
    Class2TypeMap class2type )
  {
    URL u = new URL( uri );
   
    level = Level.valueOf( u.getTerm( "DefaultValueFactory.level", "FULL" ) );
   
    this.types = types;
    this.class2type = class2type;
   
    _mt__Etch_RuntimeException = types.get( ETCH_RUNTIME_EXCEPTION_TYPE_NAME );
View Full Code Here


 
  @Override
  public TransportMessage newTransport( String uri, Resources resources )
    throws Exception
  {
    URL u = new URL( uri );
   
    TransportData c = new Tcp2Connection( u, resources );
   
    TransportPacket p = new Packetizer( c, u, resources );
   
View Full Code Here

  @Override
  public Transport<ServerFactory> newListener( final String uri,
    final Resources resources ) throws Exception
  {
    URL u = new URL( uri );
   
    Transport<SessionListener<SocketChannel>> l = new Tcp2Listener( u,
      resources );
   
    return new MySessionListener( l, uri, resources );
View Full Code Here

   * @param uri
   * @param resources
   */
  public TcpConnection( Socket socket, String uri, Resources resources )
  {
    this( socket, new URL( uri ), resources );
  }
View Full Code Here

   * @param resources
   */
  public PlainMailboxManager( TransportMessage transport, String uri,
    Resources resources )
  {
    this( transport, new URL( uri ), resources );
  }
View Full Code Here

   * @param uri
   * @param resources
   */
  public Tcp2Connection( String uri, Resources resources )
  {
    this( new URL( uri ), resources );
  }
View Full Code Here

   */
  public BinaryTaggedDataOutput( ValueFactory vf, String uri )
  {
    super( vf );
    level = vf.getLevel();
    URL u = new URL( uri );
    stringTypeAndField = u.getBooleanTerm( STRING_TYPE_AND_FIELD, false );
  }
View Full Code Here

   * @throws Exception
   */
  static public TransportMessage getTransport( String uri,
    Resources resources ) throws Exception
  {
    URL u = new URL( uri );
    TransportFactory f = getTransportFactory( u.getScheme() );
    return f.newTransport( uri, resources );
  }
View Full Code Here

   * @throws Exception
   */
  static public Transport<ServerFactory> getListener( String uri,
    Resources resources ) throws Exception
  {
    URL u = new URL( uri );
    TransportFactory f = getTransportFactory( u.getScheme() );
    return f.newListener( uri, resources );
  }
View Full Code Here

   * @param uri
   * @param resources
   */
  public Packetizer( TransportData transport, String uri, Resources resources )
  {
    this( transport, new URL( uri ), resources );
  }
View Full Code Here

TOP

Related Classes of org.apache.etch.util.URL

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.