Class RequestState
java.lang.Object
com.google.web.bindery.requestfactory.server.RequestState
- All Implemented Interfaces:
com.google.web.bindery.requestfactory.shared.impl.EntityCodex.EntitySource
class RequestState
extends Object
implements com.google.web.bindery.requestfactory.shared.impl.EntityCodex.EntitySource
Encapsulates all state relating to the processing of a single request so that
the SimpleRequestProcessor can be stateless.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTurn a domain value into a wire format message.getBeanForPayload
(Splittable serializedProxyId) EntityCodex support.getBeanForPayload
(com.google.web.bindery.requestfactory.shared.impl.SimpleProxyId<Q> id, Object domainObject) Get or create a BaseProxy AutoBean for the given id.getBeansForPayload
(List<? extends IdMessage> idMessages) Get or create BaseProxy AutoBeans for a list of id-bearing messages.com.google.web.bindery.requestfactory.shared.impl.IdFactory
getSerializedProxyId
(com.google.web.bindery.requestfactory.shared.impl.SimpleProxyId<?> stableId) EntityCodex support.com.google.web.bindery.requestfactory.shared.impl.SimpleProxyId
<?> getStableId
(Object domain) If the given domain object has been previously associated with an id, return it.boolean
isEntityType
(Class<?> clazz) EntityCodex support.boolean
isValueType
(Class<?> clazz) EntityCodex support.
-
Field Details
-
beans
-
-
Constructor Details
-
RequestState
-
RequestState
-
-
Method Details
-
flatten
Turn a domain value into a wire format message. -
getBeansForPayload
Get or create BaseProxy AutoBeans for a list of id-bearing messages. -
getIdFactory
public com.google.web.bindery.requestfactory.shared.impl.IdFactory getIdFactory() -
getResolver
-
getServiceLayer
-
getStableId
public com.google.web.bindery.requestfactory.shared.impl.SimpleProxyId<?> getStableId(Object domain) If the given domain object has been previously associated with an id, return it. -
isEntityType
EntityCodex support.- Specified by:
isEntityType
in interfacecom.google.web.bindery.requestfactory.shared.impl.EntityCodex.EntitySource
-
isValueType
EntityCodex support.- Specified by:
isValueType
in interfacecom.google.web.bindery.requestfactory.shared.impl.EntityCodex.EntitySource
-