Example usage for com.google.gwt.user.server.rpc.impl SerializedInstanceReference SERIALIZED_REFERENCE_SEPARATOR

List of usage examples for com.google.gwt.user.server.rpc.impl SerializedInstanceReference SERIALIZED_REFERENCE_SEPARATOR

Introduction

In this page you can find the example usage for com.google.gwt.user.server.rpc.impl SerializedInstanceReference SERIALIZED_REFERENCE_SEPARATOR.

Prototype

String SERIALIZED_REFERENCE_SEPARATOR

To view the source code for com.google.gwt.user.server.rpc.impl SerializedInstanceReference SERIALIZED_REFERENCE_SEPARATOR.

Click Source Link

Usage

From source file:com.apress.progwt.server.gwt.SerializabilityUtil_1_5_3.java

License:Apache License

public static SerializedInstanceReference decodeSerializedInstanceReference(
        String encodedSerializedInstanceReference) {
    final String[] components = encodedSerializedInstanceReference
            .split(SerializedInstanceReference.SERIALIZED_REFERENCE_SEPARATOR);
    return new SerializedInstanceReference() {
        public String getName() {
            return components.length > 0 ? components[0] : "";
        }//from  www.j a  v a  2  s. co  m

        public String getSignature() {
            return components.length > 1 ? components[1] : "";
        }
    };
}

From source file:com.apress.progwt.server.gwt.SerializabilityUtil_1_5_3.java

License:Apache License

public static String encodeSerializedInstanceReference(Class<?> instanceType) {
    return instanceType.getName() + SerializedInstanceReference.SERIALIZED_REFERENCE_SEPARATOR
            + getSerializationSignature(instanceType);
}

From source file:com.foo.server.rpc230.SerializabilityUtil.java

License:Apache License

public static String encodeSerializedInstanceReference(Class<?> instanceType, SerializationPolicy policy) {
    return instanceType.getName() + SerializedInstanceReference.SERIALIZED_REFERENCE_SEPARATOR
            + getSerializationSignature(instanceType, policy);
}