Examples of URI


Examples of java.net.URI

        builder.worker(new TestAction());
        builder.applicationClasspath(Arrays.asList(new File("app.jar")));
        builder.sharedPackages("package1", "package2");

        final URI serverAddress = new URI("test:something");

        context.checking(new Expectations(){{
            one(messagingServer).accept(with(notNullValue(Action.class)));
            will(returnValue(serverAddress));
            one(idGenerator).generateId();
View Full Code Here

Examples of java.net.URI

        });
        return this;
    }

    private void applyScript(Object script) {
        URI scriptUri = resolver.resolveUri(script);
        ScriptPlugin configurer = configurerFactory.create(new UriScriptSource("script", scriptUri));
        for (Object target : targets) {
            configurer.apply(target);
        }
    }
View Full Code Here

Examples of java.net.URI

    private final JUnit4Mockery context = new JUnit4Mockery();
    private final MultiChannelConnector connector = context.mock(MultiChannelConnector.class);

    @Test
    public void createsConnectionOnConstructionAndStopsOnStop() throws Exception {
        final URI serverAddress = new URI("test:somestuff");
        final MultiChannelConnection<Message> connection = context.mock(MultiChannelConnection.class);

        context.checking(new Expectations() {{
            one(connector).connect(with(equalTo(serverAddress)));
            will(returnValue(connection));
View Full Code Here

Examples of javax.servlet.sip.URI

    @Override
    public void startRequest(Buffer method, Buffer uri, Buffer version) throws IOException
    {
      try
      {
        URI ruri = URIFactory.parseURI(uri.toString());
        SipRequest request = new SipRequest();
        request.setMethod(method.toString());
        request.setRequestURI(ruri);
        _message = request;
      }
View Full Code Here

Examples of javax.sip.address.URI

    try
    {
      AddressFactory addressFactory = getAddressFactory();

      List<ViaHeader> viaHeaders = _sipPhone.getViaHeaders();
      URI requestUri = addressFactory.createURI(to);
      Address toAddr = addressFactory.createAddress(requestUri);

      Request request = getMessageFactory().createRequest(
          requestUri,
          method,
View Full Code Here

Examples of mf.org.apache.xerces.util.URI

     * @since DOM Level 3
     */
    public String getBaseURI() {
        if (fDocumentURI != null && fDocumentURI.length() != 0 ) {// attribute value is always empty string
            try {
                return new URI(fDocumentURI).toString();
            }
            catch (mf.org.apache.xerces.util.URI.MalformedURIException e){
                // REVISIT: what should happen in this case?
                return null;
            }
View Full Code Here

Examples of net.lightbody.bmp.proxy.jetty.util.URI

     * 2. Store the original hostname in a ThreadLocal so we don't need to do the same string processing again later
     * 2. Set the URI to 127.0.0.1 to pass into Odo
     * 3. Call the original handleConnect from SeleniumProxyHandler(copied to handle an Odo SslRelay)
     */
    public void handleConnect(String pathInContext, String pathParams, HttpRequest request, HttpResponse response) throws HttpException, IOException {
        URI uri = request.getURI();
        String original = uri.toString();
        LOG.info("Hostname: " + original);
        String host = original;
        String port = null;
        int colon = original.indexOf(':');
        if (colon != -1) {
            host = original.substring(0, colon);
            port = original.substring(colon + 1);
        }
       
        // store the original host name
        requestOriginalHostName.set(host);
       
        // make a copy of the URI(have to create a new URI otherwise things are copied by reference and get changed)
        URI realURI = new URI(request.getURI());
        requestOriginalURI.set(realURI);
       
      // send requests to Odo HTTPS port
        int httpsPort = com.groupon.odo.proxylib.Utils.GetSystemPort(Constants.SYS_HTTPS_PORT);
      uri.setURI("127.0.0.1:" + httpsPort);
View Full Code Here

Examples of net.rim.device.api.io.URI

        if( this._browserField == null ) {
            return new HTTPResponseStatus( HTTPResponseStatus.SC_SERVER_ERROR, request ).getResponse();
        }
        if( request.getURL().startsWith( "http://localhost:8472/" ) ) {
            URI requestURI = URI.create( request.getURL() );
            String[] splitPath = StringUtilities.split( requestURI.getPath(), "/" );
            String featureID = "";
            for( int i = 0; i < splitPath.length - 1; i++ ) {
                if( featureID == "" ) {
                    featureID = featureID + splitPath[ i ];
                } else {
View Full Code Here

Examples of org.apache.abdera.ext.serializer.annotation.URI

            Object value = eval(accessor, source);
            if (value != null)
                uri = toString(value);
        }
        if (uri == null) {
            URI _uri = objectContext.getAnnotation(URI.class);
            if (_uri != null && !_uri.value().equals(DEFAULT)) {
                uri = _uri.value();
            }
        }
        if (uri == null && _generator != null && !_generator.uri().equals(DEFAULT)) {
            uri = _generator.uri();
        }
        if (uri != null)
            sw.writeAttribute("uri", uri);

        String version = null;
        accessor = objectContext.getAccessor(URI.class, conventions);
        if (accessor != null) {
            Object value = eval(accessor, source);
            if (value != null)
                version = toString(value);
        }
        if (version == null) {
            URI _version = objectContext.getAnnotation(URI.class);
            if (_version != null && !_version.value().equals(DEFAULT)) {
                version = _version.value();
            }
        }
        if (version == null && _generator != null && !_generator.version().equals(DEFAULT)) {
            version = _generator.version();
        }
View Full Code Here

Examples of org.apache.axis.types.URI

        org.apache.axis.types.Duration ym2 = new Duration(true, 2, 3, 8, 8, 1, 3.3);
        deserialize("<result xsi:type=\"xsd:duration\">-P2Y3M8DT8H1M3.3S</result>",
                     ym2);
    }
    public void testAnyURI() throws Exception {
        org.apache.axis.types.URI uri = new URI("urn:this-is-a-test");
        deserialize("<result xsi:type=\"xsd:anyURI\">urn:this-is-a-test</result>",
                     uri);
        uri = new URI("http", "www.macromedia.com", "/testing", "query=1", null);
        deserialize("<result xsi:type=\"xsd:anyURI\">http://www.macromedia.com/testing?query=1</result>",
                     uri);
    }
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.