/* 95 */ sepMetaData.setConfigName(configName, configFile);
/* */ }
/* */
/* */ protected void processWebContext(Deployment dep, Class<?> wsClass, String linkName, ServerEndpointMetaData sepMetaData)
/* */ {
/* 100 */ WebContext anWebContext = (WebContext)wsClass.getAnnotation(WebContext.class);
/* */
/* 102 */ if (anWebContext == null) {
/* 103 */ return;
/* */ }
/* 105 */ boolean isJSEEndpoint = dep.getType() == Deployment.DeploymentType.JAXWS_JSE;
/* */
/* 108 */ if (anWebContext.contextRoot().length() > 0)
/* */ {
/* 110 */ if (isJSEEndpoint)
/* */ {
/* 112 */ log.warn("@WebContext.contextRoot is only valid on EJB endpoints");
/* */ }
/* */ else
/* */ {
/* 116 */ String contextRoot = anWebContext.contextRoot();
/* 117 */ if (!contextRoot.startsWith("/")) {
/* 118 */ contextRoot = "/" + contextRoot;
/* */ }
/* 120 */ sepMetaData.setContextRoot(contextRoot);
/* */ }
/* */
/* */ }
/* */
/* 125 */ if (anWebContext.urlPattern().length() > 0)
/* */ {
/* 127 */ if (isJSEEndpoint)
/* */ {
/* 129 */ log.warn("@WebContext.urlPattern is only valid on EJB endpoints");
/* */ }
/* */ else
/* */ {
/* 133 */ String urlPattern = anWebContext.urlPattern();
/* 134 */ sepMetaData.setURLPattern(urlPattern);
/* */ }
/* */
/* */ }
/* */
/* 139 */ if (anWebContext.authMethod().length() > 0)
/* */ {
/* 141 */ if (isJSEEndpoint)
/* */ {
/* 143 */ log.warn("@WebContext.authMethod is only valid on EJB endpoints");
/* */ }
/* */ else
/* */ {
/* 147 */ String authMethod = anWebContext.authMethod();
/* 148 */ sepMetaData.setAuthMethod(authMethod);
/* */ }
/* */
/* */ }
/* */
/* 153 */ if (anWebContext.transportGuarantee().length() > 0)
/* */ {
/* 155 */ if (isJSEEndpoint)
/* */ {
/* 157 */ log.warn("@WebContext.transportGuarantee is only valid on EJB endpoints");
/* */ }
/* */ else
/* */ {
/* 161 */ String transportGuarantee = anWebContext.transportGuarantee();
/* 162 */ sepMetaData.setTransportGuarantee(transportGuarantee);
/* */ }
/* */
/* */ }
/* */
/* 167 */ sepMetaData.setSecureWSDLAccess(anWebContext.secureWSDLAccess());
/* */
/* 170 */ String[] virtualHosts = anWebContext.virtualHosts();
/* 171 */ if (((virtualHosts != null ? 1 : 0) & (virtualHosts.length > 0 ? 1 : 0)) != 0)
/* */ {
/* 173 */ sepMetaData.setVirtualHosts(virtualHosts);
/* */ }
/* */ }