Package com.betfair.cougar.util

Examples of com.betfair.cougar.util.RequestUUIDImpl


        if (gld != null) {
            geoLocationSerializer.serialize(gld, result);
        }

        if (xRequestUUIDHeader != null) {
            RequestUUID requestUUID = ctx.getRequestUUID() != null ? ctx.getRequestUUID() : new RequestUUIDImpl();
            result.add(new BasicHeader(xRequestUUIDHeader, requestUUID.toString()));
        }

        // time headers
        if (ctx.getReceivedTime() != null) {
View Full Code Here


            message.setStringProperty(JMSPropertyConstants.MESSAGE_ROUTING_FIELD_NAME, getHostString(event));

            //Sets the message id guid.  If there isn't one, make one up
            String messageId = event.getMessageId();
            if (messageId == null) {
                messageId = new RequestUUIDImpl().toString();
            }
            message.setStringProperty(JMSPropertyConstants.MESSAGE_ID_FIELD_NAME, messageId);

            //Sets the version header
            message.setStringProperty(JMSPropertyConstants.EVENT_VERSION_FIELD_NAME, bindingDescriptor.getServiceVersion().toString());
View Full Code Here

  }

    private RequestUUID readRequestUUID(CougarObjectInput in) throws IOException {
        if (in.readBoolean()) {
            String uuidString = in.readString();
            return new RequestUUIDImpl(uuidString);
        } else {
            return new RequestUUIDImpl();
        }
    }
View Full Code Here

        if (gld != null) {
            geoLocationSerializer.serialize(gld, result);
        }

        if (xRequestUUIDHeader != null) {
            RequestUUID requestUUID = ctx.getRequestUUID() != null ? ctx.getRequestUUID() : new RequestUUIDImpl();
            result.add(new BasicHeader(xRequestUUIDHeader, requestUUID.toString()));
        }

        // time headers
        if (ctx.getReceivedTime() != null) {
View Full Code Here

            message.setStringProperty(JMSPropertyConstants.MESSAGE_ROUTING_FIELD_NAME, getHostString(event));

            //Sets the message id guid.  If there isn't one, make one up
            String messageId = event.getMessageId();
            if (messageId == null) {
                messageId = new RequestUUIDImpl().toString();
            }
            message.setStringProperty(JMSPropertyConstants.MESSAGE_ID_FIELD_NAME, messageId);

            //Sets the version header
            message.setStringProperty(JMSPropertyConstants.EVENT_VERSION_FIELD_NAME, bindingDescriptor.getServiceVersion().toString());
View Full Code Here

  }

    private RequestUUID readRequestUUID(CougarObjectInput in) throws IOException {
        if (in.readBoolean()) {
            String uuidString = in.readString();
            return new RequestUUIDImpl(uuidString);
        } else {
            return new RequestUUIDImpl();
        }
    }
View Full Code Here

            tokens = new ArrayList<IdentityToken>();
        }
        final Date receivedTime = new Date();
        final RequestUUID requestUUID;
        if (uuidString != null) {
            requestUUID = new RequestUUIDImpl(uuidString);
        } else {
            requestUUID = new RequestUUIDImpl();
        }
        final boolean traceEnabled = traceMeHeaderParamValue != null;

        GeoLocationDetails geoDetails = geoIPLocator.getGeoLocation(remoteAddress, resolvedAddresses, inferredCountry);
View Full Code Here

TOP

Related Classes of com.betfair.cougar.util.RequestUUIDImpl

Copyright © 2018 www.massapicom. 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.