Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.meterware.servletunit
Class WebApplication.ServletRequestImpl  view WebApplication.ServletRequestImpl download WebApplication.ServletRequestImpl.java

java.lang.Object
  extended bycom.meterware.servletunit.WebApplication.ServletRequestImpl
All Implemented Interfaces:
ServletMetaData
Enclosing class:
WebApplication

static class WebApplication.ServletRequestImpl
extends java.lang.Object
implements ServletMetaData


Field Summary
private  java.util.Hashtable _filtersPerName
           
private  FilterUrlMap _filtersPerUrl
           
private  java.lang.String _fullServletPath
           
private  WebApplication.WebResourceMapping _mapping
           
private  java.net.URL _url
           
 
Constructor Summary
(package private) WebApplication.ServletRequestImpl(java.net.URL url, java.lang.String servletPath, WebApplication.WebResourceMapping mapping, java.util.Hashtable filtersPerName, FilterUrlMap filtersPerUrl)
           
 
Method Summary
private  void addFiltersForPath(java.util.List filters, java.lang.String fullServletPath)
           
private  void addFiltersForServletWithName(java.util.List filters, java.lang.String servletName)
           
private  WebApplication.ServletConfiguration getConfiguration()
           
 FilterMetaData[] getFilters()
          Returns an ordered list of the filters associated with this servlet.
 java.lang.String getPathInfo()
          Returns the path info beyond the servlet path.
 javax.servlet.Servlet getServlet()
          Returns the servlet instance to use.
 java.lang.String getServletPath()
          Returns the path used to identify the servlet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_url

private java.net.URL _url

_fullServletPath

private java.lang.String _fullServletPath

_mapping

private WebApplication.WebResourceMapping _mapping

_filtersPerName

private java.util.Hashtable _filtersPerName

_filtersPerUrl

private FilterUrlMap _filtersPerUrl
Constructor Detail

WebApplication.ServletRequestImpl

WebApplication.ServletRequestImpl(java.net.URL url,
                                  java.lang.String servletPath,
                                  WebApplication.WebResourceMapping mapping,
                                  java.util.Hashtable filtersPerName,
                                  FilterUrlMap filtersPerUrl)
Method Detail

getServlet

public javax.servlet.Servlet getServlet()
                                 throws javax.servlet.ServletException
Description copied from interface: ServletMetaData
Returns the servlet instance to use.

Specified by:
getServlet in interface ServletMetaData

getServletPath

public java.lang.String getServletPath()
Description copied from interface: ServletMetaData
Returns the path used to identify the servlet.

Specified by:
getServletPath in interface ServletMetaData

getPathInfo

public java.lang.String getPathInfo()
Description copied from interface: ServletMetaData
Returns the path info beyond the servlet path.

Specified by:
getPathInfo in interface ServletMetaData

getFilters

public FilterMetaData[] getFilters()
Description copied from interface: ServletMetaData
Returns an ordered list of the filters associated with this servlet.

Specified by:
getFilters in interface ServletMetaData

addFiltersForPath

private void addFiltersForPath(java.util.List filters,
                               java.lang.String fullServletPath)

addFiltersForServletWithName

private void addFiltersForServletWithName(java.util.List filters,
                                          java.lang.String servletName)

getConfiguration

private WebApplication.ServletConfiguration getConfiguration()