Class RedirectServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.codice.ddf.ui.searchui.filter.RedirectServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class RedirectServlet extends javax.servlet.http.HttpServlet
Servlet for forcing a redirect from the default /search location to the actual web app location.

This exists because in some instances we may want to redirect to the Simple Search UI, rather than Intrigue, or even to a load balancer.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    RedirectServlet(String defaultDefaultUriString)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    service(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
     
    void
    setDefaultUri(String defaultUriStringWithUnresolvedProperties)
     

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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 Details

  • Method Details

    • service

      public void service(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws IOException
      Overrides:
      service in class javax.servlet.http.HttpServlet
      Throws:
      IOException
    • setDefaultUri

      public void setDefaultUri(String defaultUriStringWithUnresolvedProperties)
      Throws:
      NullPointerException - if defaultUriStringWithUnresolvedProperties is null
      IllegalArgumentException - if defaultUriStringWithUnresolvedProperties is blank or violates RFC 2396