Examples of Header


Examples of org.zoolu.sip.header.Header

      goToNextLine();
      int colon=header_str.indexOf(':');
      if (colon<0) return null;
      String hname=header_str.substring(0,colon).trim();
      String hvalue=header_str.substring(++colon).trim();
      return new Header(hname,hvalue);      
   }
View Full Code Here

Examples of our.apache.commons.httpclient.Header

                    throw new MessageException(
                            LOCALIZER.format(messageKey, messageParam));
                }

                // Read the response header
                Header idHeader = method.getResponseHeader(
                        MessageStoreServlet.MESSAGE_RESPONSE_HEADER_NAME);

                // Check for a null value which indicates that the header was
                // not set for some reason
                if (idHeader == null) {
                    final String messageKey =
                            "message-id-missing-url-construction-failed";
                    LOGGER.error(messageKey);
                    throw new MessageException(
                            LOCALIZER.format(messageKey));
                }

                id = idHeader.getValue();

                // And finally construct the URL to return, encoding the ? and
                // = as this is required by the NowSMS gateway BUT the whole
                // URL cannot be encoded as the / should not be encoded!
                // Rest of URL to return was created above
View Full Code Here

Examples of play.mvc.Http.Header

    String string = Flash.current().get(RenderResultCache.READ_THRU_FLASH);
    if (string != null) {
      RenderResultCache.setIgnoreCache(true);
    } else {
      // cache-control in lower case, lowercase for some reason
      Header header = Request.current().headers.get("cache-control");
      if (header != null) {
        List<String> list = header.values;
        if (list.contains(NO_CACHE)) {
          RenderResultCache.setIgnoreCache(true);
        }
View Full Code Here

Examples of quickfix.Message.Header

            super(uri, TradeExecutorComponent.this);
            this.tradeExecutor = tradeExecutor;
            tradeExecutor.addListener(new QuickfixjMessageListener() {
                public void onMessage(SessionID sessionID, Message message) throws Exception {
                    // Inject session ID into message so produce will know where to send it
                    Header header = message.getHeader();
                    setOptionalField(header, sessionID, SenderCompID.FIELD, sessionID.getTargetCompID());
                    setOptionalField(header, sessionID, SenderSubID.FIELD, sessionID.getTargetSubID());
                    setOptionalField(header, sessionID, SenderLocationID.FIELD, sessionID.getTargetLocationID());
                    setOptionalField(header, sessionID, TargetCompID.FIELD, sessionID.getSenderCompID());
                    setOptionalField(header, sessionID, TargetSubID.FIELD, sessionID.getSenderSubID());
                    setOptionalField(header, sessionID, TargetLocationID.FIELD, sessionID.getSenderLocationID());
                   
                    Exchange exchange = QuickfixjConverters.toExchange(
                        TradeExecutorEndpoint.this, sessionID, message,
                        QuickfixjEventCategory.AppMessageReceived);
                   
                    for (Processor processor : processors) {
                        processor.process(exchange);
                    }
                }

                private void setOptionalField(Header header, SessionID sessionID, int tag, String value) {
                    if (value != null && value.length() > 0) {
                        header.setString(tag, value);
                    }
                }
            });
        }
View Full Code Here

Examples of quickfix.fix42.Message.Header

        } catch ( Exception e ) {}
       
        // Add OnBehalfOfCompID
        if ( sendoboCompID && !oboCompID.equals("") ) {
            OnBehalfOfCompID onBehalfOfCompID = new OnBehalfOfCompID(oboCompID);
            Header header = (Header) message.getHeader();
            header.set( onBehalfOfCompID );     
        }

        // Add OnBehalfOfSubID
        if ( sendoboSubID && !oboSubID.equals("") ) {
            OnBehalfOfSubID onBehalfOfSubID = new OnBehalfOfSubID(oboSubID);
            Header header = (Header) message.getHeader();
            header.set( onBehalfOfSubID );     
        }
       
        // Send actual message
        try {
            Session.sendToTarget( message, currentSession );
View Full Code Here

Examples of rabbit.http.Header

   */
  if (strictHttp)
      append = checkQuotes (value);
  if (!append)
      value = value.trim ();
  head = new Header (msg.substring (0, j), value);
  header.addHeader (head);
    }
View Full Code Here

Examples of railo.commons.net.http.Header

      url = req.getURI().toURL();
    } catch (MalformedURLException e1) {
      return null;
    }
   
    Header h = HTTPResponse4Impl.getLastHeaderIgnoreCase(rsp, "location");
    if(h!=null) {
      String str = h.getValue();
      try {
        return new URL(str);
      } catch (MalformedURLException e) {
        try {
          return new URL(url.getProtocol(), url.getHost(), url.getPort(), mergePath(url.getFile(), str));
View Full Code Here

Examples of smartrics.rest.client.RestData.Header

        // from the HTTP response or the data value in the expected cell
        // equals checks for r1 being a subset of r2
        Collection<Header> expected = (Collection<Header>) expectedObj;
        Collection<Header> actual = (Collection<Header>) actualObj;
        for (Header k : expected) {
            Header aHdr = find(actual, k);
            if (aHdr == null) {
                addError("not found: [" + k.getName() + " : " + k.getValue() + "]");
            }
        }
        return getErrors().size() == 0;
View Full Code Here

Examples of starlight.taliis.core.binary.m2.Header

 
 
  public m2(){
    created=true;
   
    header=new Header();
    modelname=new ZeroTerminatedString("Test");
    anims=new AnimSequ[1];
    anims[0]=new AnimSequ();
    bone=new Bones[1];
    bone[0]=new Bones();
View Full Code Here

Examples of starlight.taliis.core.binary.skin.Header

        Long.toHexString(databuffer.position()));
  }
 
  public skin(){
    iscreated=true;
    header=new Header();
    submeshes=new Submesh[1];
    submeshes[0]=new Submesh();
    texunits=new TexUnits[1];
    texunits[0]=new TexUnits();
  }
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.