Esri Geoportal Server
1.0

com.esri.gpt.control.arcims
Class ServletConnector

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.esri.gpt.framework.context.BaseServlet
              extended by com.esri.gpt.control.arcims.ServletConnector
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ServletConnector
extends BaseServlet

Servlet Connector for an AtcIMS MetadataServer

See Also:
Serialized Form

Constructor Summary
ServletConnector()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          Handles a GET request.
protected  void execute(HttpServletRequest request, HttpServletResponse response, RequestContext context)
          Executes a POST request.
 XsltTemplate getAxlToCswXsltTemplate()
          Gets the axl to csw xslt template.
 XsltTemplate getCswToAxlXsltTemplate()
          Gets the axl to csw xslt template.
protected  Logger getLogger()
          Gets the logger.
protected  String getServiceName(HttpServletRequest request)
          Gets the service name from the servlet request.
 String handleAgsUrl(RequestContext context, String xml, String sSourceUri)
          Handle Ags url enpoints to publish catalog services
 String makeCswRequestFromAxl(RequestContext context, HttpServletRequest request, String axlRequest)
          Makes csw requests from axl request and return axl response
 
Methods inherited from class com.esri.gpt.framework.context.BaseServlet
authenticate, doPost, getCredentials, getParameterValue, getRealm, readInputCharacters, writeCharacterResponse, writeHtmlResponse, writeXmlResponse
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletConnector

public ServletConnector()
Method Detail

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     IOException
Handles a GET request.

Overrides:
doGet in class BaseServlet
Parameters:
request - the servlet request
response - the servlet response
Throws:
ServletException
IOException

execute

protected void execute(HttpServletRequest request,
                       HttpServletResponse response,
                       RequestContext context)
                throws Exception
Executes a POST request.

Specified by:
execute in class BaseServlet
Parameters:
request - the servlet request
response - the servlet response
context - the request context
Throws:
Exception - if an exception occurs

makeCswRequestFromAxl

public String makeCswRequestFromAxl(RequestContext context,
                                    HttpServletRequest request,
                                    String axlRequest)
                             throws SearchException,
                                    TransformerConfigurationException,
                                    TransformerException,
                                    DiscoveryException
Makes csw requests from axl request and return axl response

Parameters:
context - the RequestContext
request - the HttpServletRequest
axlRequest - the axl request
Returns:
axlResponse the axl response
Throws:
SearchException
TransformerConfigurationException
TransformerException
DiscoveryException

handleAgsUrl

public String handleAgsUrl(RequestContext context,
                           String xml,
                           String sSourceUri)
                    throws Exception
Handle Ags url enpoints to publish catalog services

Parameters:
context - the RequestContext
xml - the xml string
sSourceUri - the source Uri
Returns:
the axl response
Throws:
Exception

getAxlToCswXsltTemplate

public XsltTemplate getAxlToCswXsltTemplate()
                                     throws SearchException
Gets the axl to csw xslt template.

Returns:
the axl to csw xslt template
Throws:
SearchException - the search exception
Searchception - xlst template not initialized by configuration

getCswToAxlXsltTemplate

public XsltTemplate getCswToAxlXsltTemplate()
                                     throws SearchException
Gets the axl to csw xslt template.

Returns:
the axl to csw xslt template
Throws:
SearchException - the search exception
Searchception - xlst template not initialized by configuration

getLogger

protected Logger getLogger()
Gets the logger.

Overrides:
getLogger in class BaseServlet
Returns:
the logger

getServiceName

protected String getServiceName(HttpServletRequest request)
Gets the service name from the servlet request.

Parameters:
request - the servlet request
Returns:
the service name

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.