Examples of uri()


Examples of org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace.uri()

       
        if( xmlNamespaceAnnotation != null )
        {
            if( xmlNamespaceAnnotation.prefix().equals( prefix ) )
            {
                return xmlNamespaceAnnotation.uri();
            }
        }

        return null;
    }
View Full Code Here

Examples of org.elasticsearch.memcached.MemcachedRestRequest.uri()

        }
        MemcachedRestRequest request = (MemcachedRestRequest) e.getMessage();
        MemcachedRestChannel channel = new MemcachedRestChannel(ctx.getChannel(), request);

        if (!restController.dispatchRequest(request, channel)) {
            channel.sendResponse(new StringRestResponse(BAD_REQUEST, "No handler found for uri [" + request.uri() + "] and method [" + request.method() + "]"));
        }

        super.messageReceived(ctx, e);
    }
}
View Full Code Here

Examples of org.eweb4j.mvc.interceptor.Interceptor.uri()

        return false;

      Interceptor interAnn = cls.getAnnotation(Interceptor.class);
      if (interAnn == null)
        return false;
      Uri[] uris = interAnn.uri();
      if (uris == null || uris.length == 0)
        return false;
     
      InterConfigBean inter = new InterConfigBean();
      String name = "".equals(interAnn.name()) ? cls.getSimpleName() : interAnn.name();
View Full Code Here

Examples of org.helios.netty.ajax.handlergroups.URIHandler.uri()

    for(Class<?> clazz: ref.getTypesAnnotatedWith(URIHandler.class)) {
      if(PipelineModifier.class.isAssignableFrom(clazz)) {
        URIHandler uhandler = clazz.getAnnotation(URIHandler.class);
        try {
          PipelineModifier pm = (PipelineModifier)clazz.newInstance();
          String[] names = uhandler.uri();
          for(String name: names) {
            name = name.trim().toLowerCase();
            if(map.containsKey(name)) {
              LOG.warn("The handler [" + pm.getName() + "] offering URI [" + name + "] could not be registered as that URI is already registered" );
            } else {
View Full Code Here

Examples of org.ibeans.annotation.Call.uri()

{
    protected AnnotatedEndpointData createEndpointData(Annotation annotation) throws MuleException
    {
        Call call = (Call) annotation;
        AnnotatedEndpointData epd = new AnnotatedEndpointData(MessageExchangePattern.REQUEST_RESPONSE, ChannelType.Outbound, call);
        epd.setAddress(call.uri());
        epd.setProperties(AnnotatedEndpointData.convert(call.properties()));
        return epd;
    }

    protected String getIdentifier()
View Full Code Here

Examples of org.jbehave.core.io.rest.redmine.LoadFromRedmine.uri()

  @Test
  public void canFormatURIForJSON() {
    LoadFromRedmine loader = new LoadFromRedmine(Type.JSON);
    String url = "http://demo.redmine.org/project/jbehave/wiki/some_story";
    String text = loader.uri(url, Type.JSON);
    assertThat(text, equalTo(url+".json"));
  }

  @Test
  public void canReadFromRedmineAsJSON() {
View Full Code Here

Examples of org.jbehave.core.io.rest.redmine.LoadFromRedmine.uri()

  @Test
  public void canFormatURIForXML() {
    LoadFromRedmine loader = new LoadFromRedmine(Type.XML);
    String url = "http://demo.redmine.org/project/jbehave/wiki/some_story";
    String text = loader.uri(url, Type.XML);
    assertThat(text, equalTo(url+".xml"));
  }

  @Test
  public void canReadFromRedmineAsXML() throws MalformedURLException {
View Full Code Here

Examples of org.jboss.aerogear.security.otp.Totp.uri()

     * @return HTTP response with the OTP URI encoded in QRCode. For example: otpauth://totp/alice@google.com?secret=JBSWY3DPEHPK3PXP
     */
    public Response getSecret() {
        Totp totp = new Totp(secret.get());
        AeroGearUser userInfo = new AeroGearUser();
        userInfo.setUri(totp.uri(loggedUser.get()));

        return Response.ok(userInfo).build();
    }

}
View Full Code Here

Examples of org.jboss.resteasy.specimpl.LinkBuilderImpl.uri()

   {
      javax.ws.rs.core.Link.Builder builder = new LinkBuilderImpl();
      builder.rel(getRelationship());
      builder.title(getTitle());
      builder.type(getType());
      builder.uri(getHref());
      for (Map.Entry<String, List<String>> entry : getExtensions().entrySet())
      {
         for (String val : entry.getValue())
         {
            builder.param(entry.getKey(), val);
View Full Code Here

Examples of org.jclouds.compute.domain.HardwareBuilder.uri()

      VirtualDatacenter virtualDatacenter = templateInVirtualDatacenter.getZone();

      HardwareBuilder builder = new HardwareBuilder();
      builder.providerId(template.getId().toString());
      builder.id(template.getId().toString() + "/" + virtualDatacenter.getId());
      builder.uri(template.getURI());

      builder.name(template.getName());
      builder.processor(new Processor(template.getCpuRequired(), DEFAULT_CORE_SPEED));
      builder.ram(template.getRamRequired());
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.