users@jaspic-spec.java.net

[JIRA] Commented: (JASPIC_SPEC-1) AppContextID of Servlet profile includes name of virtual host; for which Servlet provides no portable api

From: arjan tijms (JIRA) <"arjan>
Date: Sat, 9 Mar 2013 00:08:53 +0000 (GMT+00:00)

    [ http://java.net/jira/browse/JASPIC_SPEC-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=358062#action_358062 ]

arjan tijms commented on JASPIC_SPEC-1:
---------------------------------------

I just read that the MR document at http://jcp.org/aboutJava/communityprocess/maintenance/jsr196/standard_appContextID_generation.pdf

Mentions the following:

{quote}
A Servlet container that implements a version of the Servlet specification that defines the {{getVirtualServerName}} method on the {{ServletContext}} interface, must construct its application context identifiers using a value for hostname that is equivalent to the value returned by calling {{getVirtualServerName}} on the {{ServletContext}} corresponding to the web application.
{quote}

I couldn't however find a method called {{getVirtualServerName}} on {{ServletContext}}. I checked {{javax.servlet-api-3.1-pdr-javadoc}}, but it doesn't seem to be there. Is this a method planned for the future?

> AppContextID of Servlet profile includes name of virtual host; for which Servlet provides no portable api
> ---------------------------------------------------------------------------------------------------------
>
> Key: JASPIC_SPEC-1
> URL: http://java.net/jira/browse/JASPIC_SPEC-1
> Project: jaspic-spec
> Issue Type: Bug
> Reporter: monzillo
> Assignee: monzillo
>
> During programmatic AuthConfigProvider registration - especially
> self-registration via
> AuthConfigFactory.registerConfigProvider(AuthConfigProvider provider,
> String layer,
> String appContextID,
> String description);
> the AuthConfigProvider has no portable way to determine the name of the virtual
> host, and thus to register using the same virtual host name that will be used
> by the runtime in its call to
> AuthConfigFactory.getConfigProvider(String layer, String appContextID,
> RegistrationListener listener);
> Servlet 3.1 does not intend to provide a portable api by which the name of the
> virtual host can be obtained.
> this problem was first reported by Arjan Tijms

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira