Examples of ServiceDefinition


Examples of com.github.dynamicextensionsalfresco.osgi.ServiceDefinition

          // Skip empty lines and comments.
          continue;
        }
        try {
          serviceDefinitionEditor.setAsText(line);
          final ServiceDefinition serviceDefinition = (ServiceDefinition) serviceDefinitionEditor.getValue();
          serviceDefinitions.add(serviceDefinition);
        } catch (final IllegalArgumentException e) {
          logger.warn("Could not parse SystemPackage configuration line: {}", e.getMessage());
        }
View Full Code Here

Examples of com.google.api.explorer.client.base.ApiDirectory.ServiceDefinition

  /**
   * Test that a blacklisted API doesn't show up in the directory list.
   */
  public void testDirectoryBlacklist() {
    ServiceDefinition toFilter = EasyMock.createMock(ServiceDefinition.class);
    EasyMock.expect(toFilter.getName()).andReturn("drive").atLeastOnce();
    EasyMock.expect(toFilter.getId()).andReturn("drive:v1").atLeastOnce();

    ServiceDefinition toLeave = EasyMock.createMock(ServiceDefinition.class);
    EasyMock.expect(toLeave.getName()).andReturn("drive").atLeastOnce();
    EasyMock.expect(toLeave.getId()).andReturn("drive:v2").atLeastOnce();

    final Set<ServiceDefinition> directory = ImmutableSet.of(toFilter, toLeave);
    ApiServiceFactory mockDirectory = EasyMock.createMock(ApiServiceFactory.class);

    final Capture<AsyncCallback<Set<ServiceDefinition>>> cbCapture =
View Full Code Here

Examples of com.google.api.explorer.client.base.ApiDirectory.ServiceDefinition

*/
public class SearchEntryTest extends TestCase {

  /** Test the function which returns a view with additional keywords. */
  public void testKeywordAddition() {
    ServiceDefinition service = EasyMock.createMock(ServiceDefinition.class);
    EasyMock.expect(service.getId()).andReturn(null).anyTimes();
    SearchResult emptyResult = SearchResult.createServiceResult(service);

    EasyMock.replay(service);

    SearchEntry emptyEntry = new SearchEntry(emptyResult, Collections.<String>emptySet());
View Full Code Here

Examples of com.sun.xml.internal.ws.api.server.ServiceDefinition

        super(endpoint);
        this.owner = owner;
        this.urlPattern = urlPattern;

        // fill in WSDL map
        ServiceDefinition sdef = this.endpoint.getServiceDefinition();
        if(sdef==null) {
            wsdls = Collections.emptyMap();
            revWsdls = Collections.emptyMap();
        } else {
            wsdls = new HashMap<String, SDDocument>()// wsdl=1 --> Doc
            // Sort WSDL, Schema documents based on SystemId so that the same
            // document gets wsdl=x mapping
            Map<String, SDDocument> systemIds = new TreeMap<String, SDDocument>();
            for (SDDocument sdd : sdef) {
                if (sdd == sdef.getPrimary()) { // No sorting for Primary WSDL
                    wsdls.put("wsdl", sdd);
                    wsdls.put("WSDL", sdd);
                } else {
                    systemIds.put(sdd.getURL().toString(), sdd);
                }
View Full Code Here

Examples of com.sun.xml.ws.api.server.ServiceDefinition

    public @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) {
        return baseURI.resolve("?"+endpoint.getPortName().getLocalPart()).toString();
    }

    public String getWSDLAddress(@NotNull Packet request, @NotNull WSEndpoint endpoint) {
        ServiceDefinition sd = endpoint.getServiceDefinition();
        if(sd != null) {
            return sd.getPrimary().getURL().toString();
        } else
            return null;
    }
View Full Code Here

Examples of com.sun.xml.ws.api.server.ServiceDefinition

    public @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) {
        return baseURI.resolve("?"+endpoint.getPortName().getLocalPart()).toString();
    }

    public String getWSDLAddress(@NotNull Packet request, @NotNull WSEndpoint endpoint) {
        ServiceDefinition sd = endpoint.getServiceDefinition();
        if(sd != null) {
            return sd.getPrimary().getURL().toString();
        } else
            return null;
    }
View Full Code Here

Examples of com.sun.xml.ws.api.server.ServiceDefinition

           
            @Override
            protected DefaultServerTubelineAssemblyContext createServerContext(ServerTubeAssemblerContext jaxwsContext) {
                DefaultServerTubelineAssemblyContext context = super.createServerContext(jaxwsContext);
                // JAX-WS extension: adding metro WsdlDocumentFilter
                ServiceDefinition sd = context.getEndpoint().getServiceDefinition();
                if (sd != null) {
                    sd.addFilter(new WsdlDocumentFilter());
                }
                return context;
            }

            protected MetroClientTubelineAssemblyContextImpl createClientContext(ClientTubeAssemblerContext jaxwsContext) {
View Full Code Here

Examples of com.sun.xml.ws.api.server.ServiceDefinition

     * @throws IOException when I/O errors happen
     */
    private void publishWSDL(@NotNull WSHTTPConnection connection, final @NotNull HttpAdapter adapter)
            throws IOException {
        // If the service definition has changed in the meantime, reprocess it
        final ServiceDefinition currentServiceDefinition = adapter.getEndpoint().getServiceDefinition();
        if (adapter.getServiceDefinition() != currentServiceDefinition) {
            adapter.initWSDLMap(currentServiceDefinition);
        }
        adapter.publishWSDL(connection);
    }
View Full Code Here

Examples of com.sun.xml.ws.api.server.ServiceDefinition

     * the wsdl and schema documents to the mex response.
     */
    void addDocuments(final XMLStreamWriter writer, final Packet request,
        final String address) throws XMLStreamException {
       
        final ServiceDefinition sDef = endpoint.getServiceDefinition();
        if (sDef == null) {
            return;
        }
        final Iterator<SDDocument> docs = sDef.iterator();
        while (docs.hasNext()) {
            writeDoc(writer, docs.next(), address);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.service.ServiceDefinition

        final String filterPath = getFilterPath(httpRequest);
        final String url = httpRequest.getRequestURL().toString();
        String remappedURL = url;
        String transformURL = null;

        ServiceDefinition serviceDef =
                ServiceDefinitionHelper.retrieveService(request);
             
        if(serviceDef != null &&
            serviceDef != ServiceDefinition.DEFAULT_SERVICE_DEFINITION) {           
            //remappedURL = serviceDef.getRemoteTarget();
            transformURL = serviceDef.getTransform();
            // ok we have a service lets use that service remapper
            urlRemapper = new ServiceURLRemapper(serviceDef);
        }
               
        // we do not apply a transform when there is no service
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.