Examples of location()


Examples of javax.servlet.annotation.MultipartConfig.location()

                }
                servletInfo.setServletSecurityInfo(servletSecurityInfo);
            }
            final MultipartConfig multipartConfig = servletInfo.getServletClass().getAnnotation(MultipartConfig.class);
            if(multipartConfig != null) {
                servletInfo.setMultipartConfig(new MultipartConfigElement(multipartConfig.location(), multipartConfig.maxFileSize(), multipartConfig.maxRequestSize(), multipartConfig.fileSizeThreshold()));
            }
            final RunAs runAs = servletInfo.getServletClass().getAnnotation(RunAs.class);
            if(runAs != null) {
                servletInfo.setRunAs(runAs.value());
            }
View Full Code Here

Examples of javax.servlet.annotation.MultipartConfig.location()

        }
        MultipartConfig multipartAnnot = servletClass
            .getAnnotation(MultipartConfig.class);
        if (multipartAnnot != null) {
          multipartEnabled = true;
          if (multipartAnnot.location().length() > 0)
            multipartLocation = new File(multipartAnnot.location());
          multipartThreshold = multipartAnnot.fileSizeThreshold();
          multipartMaxFile = multipartAnnot.maxFileSize();
          multipartMaxRequest = multipartAnnot.maxRequestSize();
        }
View Full Code Here

Examples of javax.ws.rs.core.Response.ResponseBuilder.location()

    public String isSecure(@Context UriInfo uriInfo) {
        if (!this.securityContext.isSecure()) {
            final ResponseBuilder rb = Response
                    .status(Status.MOVED_PERMANENTLY);
            rb.entity("You must use a secure connection");
            rb.location(uriInfo.getRequestUriBuilder().scheme("https").build());
            throw new WebApplicationException(rb.build());
        }
        return "wonderful! It's a secure request.";
    }
View Full Code Here

Examples of javax.xml.bind.annotation.XmlSchema.location()

        for (ClassInfoImpl<T, C, F, M> ci : beans().values()) {
            XmlSchema xs = reader.getPackageAnnotation( XmlSchema.class, ci.getClazz(), null );
            if(xs==null)
                continue;

            String loc = xs.location();
            if(loc.equals(XmlSchema.NO_LOCATION))
                continue;   // unspecified

            r.put(xs.namespace(),loc);
        }
View Full Code Here

Examples of ns.foundation.NSMutableRange.location()

    assertEquals(0, range.length());
  }

  public void testNSMutableRangeIntInt() {
    NSMutableRange range = new NSMutableRange(2,3);
    assertEquals(2, range.location());
    assertEquals(3, range.length());
  }

  public void testNSMutableRangeNSRange() {
    NSMutableRange range = new NSMutableRange(1,1);
View Full Code Here

Examples of ns.foundation.NSRange.location()

    assertEquals(new NSRange(0,0), range);
  }

  public void testNSRangeIntInt() {
    NSRange range = new NSRange(2,3);
    assertEquals(2, range.location());
    assertEquals(3, range.length());
  }

  public void testNSRangeNSRange() {
    NSRange range = new NSRange(1,1);
View Full Code Here

Examples of org.chromium.sdk.internal.wip.protocol.input.debugger.FunctionDetailsValue.location()

      @Override
      public Script getScript() throws MethodIsBlockingException {
        FunctionDetailsValue functionDetails = getFunctionDetails();
        WipScriptManager scriptManager = getRemoteValueMapping().getTabImpl().getScriptManager();
        return scriptManager.getScript(functionDetails.location().scriptId());
      }

      @Override
      public TextStreamPosition getOpenParenPosition()
          throws MethodIsBlockingException {
View Full Code Here

Examples of org.codehaus.jra.HttpResource.location()

            verb = DELETE;
        } else {
            verb = POST;
        }
       
        mapper.bind(bop, r.location(), verb);
       
        return true;
    }
   
}
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.annotations.XmlSchema.location()

                    final XmlSchema xmlSchemaAnnotation = modelElementType.getAnnotation( XmlSchema.class );
                   
                    if( xmlSchemaAnnotation != null )
                    {
                        final String xmlSchemaNamespace = xmlSchemaAnnotation.namespace().trim();
                        final String xmlSchemaLocation = xmlSchemaAnnotation.location().trim();
                       
                        if( xmlSchemaNamespace.length() != 0 && xmlSchemaLocation.length() != 0 )
                        {
                            schemas.put( xmlSchemaNamespace, xmlSchemaLocation );
                        }
View Full Code Here

Examples of org.elasticsearch.index.translog.fs.FsTranslog.location()

            return;
        }

        // move an existing translog, if exists, to "recovering" state, and start reading from it
        FsTranslog translog = (FsTranslog) indexShard.translog();
        File recoveringTranslogFile = new File(translog.location(), "translog-" + translogId + ".recovering");
        if (!recoveringTranslogFile.exists()) {
            File translogFile = new File(translog.location(), "translog-" + translogId);
            if (translogFile.exists()) {
                for (int i = 0; i < 3; i++) {
                    if (translogFile.renameTo(recoveringTranslogFile)) {
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.