Added comments

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@128577 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-05-12 16:22:44 +00:00
parent 2a0576b096
commit c71b90f977
1 changed files with 13 additions and 4 deletions

View File

@ -38,14 +38,15 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class GeonetworkResolver.
*
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
* Apr 4, 2016
* Works as a proxy in order to authenticate HTTP POST calls on gCube Geonetwork servers discovered by SCOPE on gCube Information System
* Used by gCube Data Catalog for harvesting metadata
*
* This class authenticate all query on Geonetwork by SCOPE
* Used by gCube Data Catalog for harvesting
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
* May 12, 2016
*/
public class GeonetworkResolver extends HttpServlet{
@ -102,6 +103,7 @@ public class GeonetworkResolver extends HttpServlet{
/* (non-Javadoc)
* @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
* This call is not authenticated
*/
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
@ -223,6 +225,7 @@ public class GeonetworkResolver extends HttpServlet{
/* (non-Javadoc)
* @see javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
* This call is authenticated
*/
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)throws ServletException, IOException {
@ -439,6 +442,12 @@ public class GeonetworkResolver extends HttpServlet{
}
/**
* The main method.
*
* @param args the arguments
* @throws UnsupportedEncodingException the unsupported encoding exception
*/
public static void main(String[] args) throws UnsupportedEncodingException {
/*String scopeValue ="/gcube/devsec/devVRE";