|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeNameObfuscator
This is a private interface that allows ProxyCreator to provide obfuscated
type names to the server components via StandardSerializationPolicy.
The particulars of the implementation are deeply tied to the specifics of the RPC wire format and the code generated by TypeSerializerCreator.
This interface is not public in order to allow the API to be switched from Strings to ints in a future revision.
| Field Summary | |
|---|---|
static java.lang.String |
SERVICE_INTERFACE_ID
A reserved ID for specifying the identifier for the service interface itself. |
| Method Summary | |
|---|---|
java.lang.String |
getClassNameForTypeId(java.lang.String id)
Returns the name of the class that should be instantiated based on an obfuscated identifier. |
java.lang.String |
getTypeIdForClass(java.lang.Class<?> clazz)
Returns the obfuscated identifier to be used to encode a class in the RPC wire format. |
| Field Detail |
|---|
static final java.lang.String SERVICE_INTERFACE_ID
| Method Detail |
|---|
java.lang.String getClassNameForTypeId(java.lang.String id)
throws SerializationException
id - the type id that was present in the RPC payload
Class.forName(java.lang.String),
to be instantiated
SerializationException - if there is no class that corresponds to the
obfuscated id
java.lang.String getTypeIdForClass(java.lang.Class<?> clazz)
throws SerializationException
clazz - the class to be transmitted
SerializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||