/** * Gets list of JAXWS EJBs meta data. * * @param unit deployment unit * @return list of JAXWS EJBs meta data */ public static List<EJBEndpoint> getJaxwsEjbs(final DeploymentUnit unit) { final JAXWSDeployment jaxwsDeployment = getOptionalAttachment(unit, WSAttachmentKeys.JAXWS_ENDPOINTS_KEY); return jaxwsDeployment != null ? jaxwsDeployment.getEjbEndpoints() : Collections.<EJBEndpoint>emptyList(); }
/** * Gets list of JAXWS POJOs meta data. * * @param unit deployment unit * @return list of JAXWS POJOs meta data */ public static List<POJOEndpoint> getJaxwsPojos(final DeploymentUnit unit) { final JAXWSDeployment jaxwsDeployment = unit.getAttachment(WSAttachmentKeys.JAXWS_ENDPOINTS_KEY); return jaxwsDeployment != null ? jaxwsDeployment.getPojoEndpoints() : Collections.<POJOEndpoint>emptyList(); }
private void addEndpoint( JBossWebMetaData jbossWebMetaData, JAXWSDeployment jaxwsDeployment, String endpointName, String className, String urlPattern) { if (urlPattern == null) { urlPattern = "/*"; } else { urlPattern = urlPattern.trim(); if (!urlPattern.startsWith("/")) { urlPattern = "/" + urlPattern; } } jaxwsDeployment.addEndpoint(new POJOEndpoint(endpointName, className, null, urlPattern, false)); }