Examples of header()


Examples of com.sun.jersey.api.client.WebResource.Builder.header()

        }
        String querystring = b.toString();

        Builder builder = client.resource(host + path + querystring).accept("application/json");
        for (String key : headerParams.keySet()) {
            builder.header(key, headerParams.get(key));
        }

        for (String key : defaultHeaderMap.keySet()) {
            if (!headerParams.containsKey(key)) {
                builder.header(key, defaultHeaderMap.get(key));
View Full Code Here

Examples of com.woorea.openstack.base.client.OpenStackResponse.header()

    Authentication auth = new Authentication();
    auth.setIdentity(Identity.password(ExamplesConfiguration.KEYSTONE_USERNAME, ExamplesConfiguration.KEYSTONE_PASSWORD));
   
    OpenStackResponse response = keystone.tokens().authenticate(auth).request();
   
    String tokenId = response.header("X-Subject-Token");
   
    Token token = response.getEntity(Token.class);
   
    System.out.println(tokenId);
View Full Code Here

Examples of convwatch.HTMLOutputter.header()

                int n = m_sInputPath.lastIndexOf(fs);
                sHTMLName = m_sInputPath.substring(n + 1);
                sHTMLName += ".html";
            }
            HTMLOutputter HTMLoutput = HTMLOutputter.create(m_sOutputPath, sHTMLName, "", "");
            HTMLoutput.header( m_sOutputPath );
            HTMLoutput.indexSection( m_sOutputPath );
            LISTOutputter LISToutput = LISTOutputter.create(m_sOutputPath, "allfiles.txt");

            DB.init(aGTA.getDBInfoString() + "," + sDBConnection);
View Full Code Here

Examples of de.taimos.httputils.HTTPRequest.header()

      final String body;
      final String due = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
      final String bodyString = "{\"version\":{\"name\":\"%s\",\"status\":\"closed\",\"due_date\":\"%s\"}}";
      body = String.format(bodyString, version.getName(), due);
      final HTTPRequest req = this.createRequest("/versions/" + version.getId() + ".json");
      req.header(WSConstants.HEADER_CONTENT_TYPE, Redmine.APPLICATION_JSON);
      final HttpResponse put = req.body(body).put();
      if (!WS.isStatusOK(put)) {
        this.log.error(WS.getResponseAsString(put));
        throw new RedmineException(Redmine.STATUS_CHANGE_FAILED);
      }
View Full Code Here

Examples of fork.lib.bio.anno.genomic.BarReader.header()

    BarReader br= new BarReader(f);
    LandscapeBuilder lb= br.getLandscapeBuilder();
   
    new LandscapeTransformer(lb).unlog();
   
    new BarExporter(lb, br.header()).writeToFile(new File(d+"/unlog_"+f.getName()));
   
   
   
}   
   
View Full Code Here

Examples of io.netty.handler.codec.dns.DnsQuery.header()

        remainingTries --;

        final InetSocketAddress nameServerAddr = nameServerAddresses.next();
        final DnsQuery query = new DnsQuery(id, nameServerAddr);
        query.addQuestion(question);
        query.header().setRecursionDesired(recursionDesired);
        query.addAdditionalResource(optResource);

        final DatagramChannel ch = parent.ch;

        if (logger.isDebugEnabled()) {
View Full Code Here

Examples of io.netty.handler.codec.dns.DnsResponse.header()

    private final class DnsResponseHandler extends ChannelHandlerAdapter {
        @Override
        public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
            try {
                final DnsResponse res = (DnsResponse) msg;
                final int queryId = res.header().id();

                if (logger.isDebugEnabled()) {
                    logger.debug("{} RECEIVED: [{}: {}], {}", ch, queryId, res.sender(), res);
                }
View Full Code Here

Examples of javax.jws.WebParam.header()

        if (webParam != null)
        {
            WebParamAnnotation annot = new WebParamAnnotation();
            annot.setName(webParam.name());
            annot.setTargetNamespace(webParam.targetNamespace());
            annot.setHeader(webParam.header());
            annot.setPartName(webParam.partName());
           
            if (webParam.mode() == WebParam.Mode.IN)
            {
                annot.setMode(WebParamAnnotation.MODE_IN);
View Full Code Here

Examples of javax.jws.WebParam.header()

        WebParam.Mode ignoreParamMode = isOutBound ? WebParam.Mode.IN : WebParam.Mode.OUT;
        int noArgs = callback.getMethod().getParameterTypes().length;
        try {
            for (int idx = 0; idx < noArgs; idx++) {
                WebParam param = callback.getWebParam(idx);
                if ((param.mode() != ignoreParamMode) && !param.header()) {
                    Class<?> cls = callback.getMethod().getParameterTypes()[idx];               
                    if (param.mode() != WebParam.Mode.IN) {
                        //INOUT and OUT Params are mapped to Holder<T>.
                        Type[] genericParameterTypes = callback.getMethod().getGenericParameterTypes();
                        //ParameterizedType represents Holder<?>
View Full Code Here

Examples of javax.jws.WebParam.header()

       
        //Unmarshal parts of mode that should not be ignored and are not part of the SOAP Headers
        Object[] args = objCtx.getMessageObjects();
        for (int idx = 0; idx < noArgs; idx++) {
            WebParam param = getWebParam(idx);
            if ((param.mode() != ignoreParamMode) && !param.header()) {
                Object wrappedObj = args[idx];
                //Unwrap Holder for inout,out parts.               
                if (param.mode() != WebParam.Mode.IN) {
                    wrappedObj = ((Holder)wrappedObj).value;   
                }       
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.