| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| protected static class | |
| protected static class | |
| protected abstract static class | |
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | allowReplacement
Allow replacement of already added |
| protected final Mapper. | context
Context associated with this wrapper, used for wrapper mapping. |
| private static final String | |
| private final Map | |
| protected String | defaultHostName
Default host name. |
| protected Mapper. | hosts
Array containing the virtual hosts definitions. |
| private static final String | |
| private static final Logger | |
| private int | port
The port this Mapper is used |
| private static final CharChunk |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addContext(String
Virtual host name this context belongs to hostName, String Context path path, Object Context object context, String[] Welcome files defined for this context welcomeResources, NamingContext Static resources of the context resources)Add a new Context to an existing Host. |
| public void | addContext(String
Virtual host name this context belongs to hostName, String Context path path, Object Context object context, String[] Welcome files defined for this context welcomeResources, NamingContext Static resources of the context resources, List<AlternateDocBase> the alternate docbases of the context alternateDocBases)Add a new Context to an existing Host. |
| private void | addDefaultContext(Mapper.
Configures the given virtual server with the given default context path. |
| public synchronized void | |
| public void | addWrapper(String
Virtual host name this wrapper belongs to hostName, String Context path this wrapper belongs to contextPath, String Wrapper mapping path, Object Wrapper object wrapper)Add a new Wrapper to an existing Context. |
| public void | addWrapper(String
Virtual host name this wrapper belongs to hostName, String Context path this wrapper belongs to contextPath, String Wrapper mapping path, Object Wrapper object wrapper, boolean jsp wildcard jspWildCard)Add a new Wrapper to an existing Context. |
| public void | addWrapper(String
Virtual host name this wrapper belongs to hostName, String Context path this wrapper belongs to contextPath, String Wrapper mapping path, Object Wrapper object wrapper, boolean jsp wildcard jspWildCard, String servlet name or null if unknown servletName, boolean isEmptyPathSpecial)Add a new Wrapper to an existing Context. |
| public void | addWrapper(String
Wrapper mapping path, Object The Wrapper object wrapper)Add a wrapper to the context associated with this wrapper. |
| public void | |
| public void | addWrapper(String path, Object wrapper, boolean jspWildCard, String servletName, boolean isEmptyPathSpecial)
|
| protected void | |
| protected void | addWrapper(Mapper.
|
| protected void | addWrapper(Mapper.
The context to which to add the wrapper context,Wrapper mapping path, Object The Wrapper object wrapper, boolean true if the wrapper corresponds to the JspServlet and the mapping path contains a wildcard; false
otherwise jspWildCard, String then name of servletName or null if unknown servletName, boolean isEmptyPathSpecial)Adds a wrapper to the given context. |
| public static boolean | allowReplacement()
true if replacement of already added [@link Host}, |
| private static int | |
| private static int | compareIgnoreCase(CharChunk name, int start, int end, String compareTo)
Compare given char chunk with String ignoring case. |
| private static int | |
| private static int | find(Mapper.
Find a map element given its name in a sorted array of map elements. |
| private static int | find(Mapper.
Find a map element given its name in a sorted array of map elements. |
| private static int | find(final Mapper.
Find a map element given its name in a sorted array of map elements. |
| private static int | findIgnoreCase(Mapper.
Find a map element given its name in a sorted array of map elements. |
| private static int | findIgnoreCase(Mapper.
Find a map elemnt given its name in a sorted array of map elements. |
| private static int | findIgnoreCase(final Mapper.
Find a map elemnt given its name in a sorted array of map elements. |
| public String[] | |
| public String | |
| public String[] | |
| public int | |
| public String[] | |
| public String | |
| private static Mapper. | Returns: old MapElement with matching name (this is an indication that newElement has not been inserted), or null if oldMap did not contain any MapElement with matching name (this is an indication that newElement has been inserted)Insert into the right place in a sorted MapElement array, preventing duplicates. |
| private static Mapper. | Returns: old MapElement with matching name (this is an indication that newElement has not been inserted), or null if oldMap did not contain any MapElement with matching name (this is an indication that newElement has been inserted)Inserts the given MapElement at the appropriate place in the given, lexicograhically sorted, MapElement array, avoiding duplicates. |
| private void | |
| private void | internalMapExactWrapper(Mapper.
Exact mapping. |
| private void | internalMapExtensionWrapper(Mapper.
Extension mappings. |
| private void | internalMapWildcardWrapper(Mapper.
Wildcard mapping. |
| private void | |
| private static int | |
| public void | map(final DataChunk
Virtual host name host, final DataChunk URI uri, final MappingData This structure will contain the result of the mapping operation mappingData)Map the specified host name and URI, mutating the given mapping data. |
| public void | map(final HttpRequestPacket
the http request containing host name information used by the mapping process. requestPacket, final DataChunk URI uri, final MappingData This structure will contain the result of the mapping operation mappingData)Map the specified host name and URI, mutating the given mapping data. |
| public void | map(MessageBytes
URI uri, MappingData This structure will contain the result of the mapping operation mappingData)Map the specified URI relative to the context, mutating the given mapping data. |
| public void | mapUriWithSemicolon(final HttpRequestPacket
the request packet containing the host information to be used by the mapping process. requestPacket, final DataChunk decoded URI decodedURI, final MappingData MappingData based on the URI.semicolon position. Might be 0 if position wasn't resolved yet (so it will be resolved
in the method), or -1 if there is no semicolon in the URI. semicolonPos)Maps the decodedURI to the corresponding HttpHandler, considering that URI may have a semicolon with extra data followed, which shouldn't be a part of mapping process. |
| public void | mapUriWithSemicolon(final DataChunk
the server name as described by the Host header. serverName, final DataChunk decoded URI decodedURI, final MappingData MappingData based on the URI.semicolon position. Might be 0 if position wasn't resolved yet (so it will be resolved
in the method), or -1 if there is no semicolon in the URI. semicolonPos)Maps the decodedURI to the corresponding HttpHandler, considering that URI may have a semicolon with extra data followed, which shouldn't be a part of mapping process. |
| private static int | |
| public void | removeContext(String
Virtual host name this context belongs to hostName, String Context path path)Remove a context from an existing host. |
| public synchronized void | |
| private static boolean | removeMap(Mapper.
Removes from a sorted MapElement array. |
| private static boolean | removeMapIgnoreCase(Mapper.
Removes the MapElement with the given name from the given, lexicographically sorted, MapElement array. |
| public void | removeWrapper(String
Wrapper mapping path)Remove a wrapper from the context associated with this wrapper. |
| public void | removeWrapper(String
Virtual host name this wrapper belongs to hostName, String Context path this wrapper belongs to contextPath, String Wrapper mapping path)Remove a wrapper from an existing context. |
| protected void | |
| public static void | setAllowReplacement(boolean ar)
Allow replacement of already added |
| public void | setContext(String path, String[]
Welcome files defined for this context welcomeResources, NamingContext Static resources of the context resources)Set context, used for wrapper mapping (request dispatcher). |
| public void | setDefaultContextPath(String hostName, String defaultContextPath)
Configures the given virtual server with the given default context path. |
| public void | |
| public void | |
| private static int |