info.sswap.ontologies.data.api
Interface Accessor


public interface Accessor

Interface to web resources that assist or enable accessing a web data source or destination (e.g, username and password authentication and authorization).

Author:
Damian Gessler

Method Summary
 java.net.URLConnection access(java.net.URLConnection urlConnection)
          Method acts as a filter: it is passed a URLConnection and should return an authenticated URLConnection suitable for immediate reading.
 

Method Detail

access

java.net.URLConnection access(java.net.URLConnection urlConnection)
                              throws java.io.IOException,
                                     AccessorException
Method acts as a filter: it is passed a URLConnection and should return an authenticated URLConnection suitable for immediate reading.

Parameters:
urlConnection - URL connection to be opened (authenticated, authorized, etc.)
Returns:
an authenticated, authorized, etc. URL connection ready for reading
Throws:
java.io.IOException - on any connection error
AccessorException - on any Accessor-specific error


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.