Lines Matching refs:attrs

129         Object obj, Attributes attrs,
145 attrs = (Attributes)attrs.clone();
147 attrs.put(objectClass);
150 attrs, obj));
156 attrs = (Attributes)attrs.clone();
158 attrs.put(objectClass);
159 return (encodeReference(separator, (Reference)obj, attrs, null));
169 attrs = (Attributes)attrs.clone();
171 attrs.put(objectClass);
172 attrs.put(new BasicAttribute(JAVA_ATTRIBUTES[SERIALIZED_DATA],
174 if (attrs.get(JAVA_ATTRIBUTES[CLASSNAME]) == null) {
175 attrs.put(JAVA_ATTRIBUTES[CLASSNAME],
178 if (attrs.get(JAVA_ATTRIBUTES[TYPENAME]) == null) {
182 attrs.put(tAttr);
192 // System.err.println(attrs);
193 return attrs;
228 static Object decodeObject(Attributes attrs)
234 String[] codebases = getCodebases(attrs.get(JAVA_ATTRIBUTES[CODEBASE]));
236 if ((attr = attrs.get(JAVA_ATTRIBUTES[SERIALIZED_DATA])) != null) {
239 } else if ((attr = attrs.get(JAVA_ATTRIBUTES[REMOTE_LOC])) != null) {
242 (String)attrs.get(JAVA_ATTRIBUTES[CLASSNAME]).get(),
246 attr = attrs.get(JAVA_ATTRIBUTES[OBJECT_CLASS]);
250 return decodeReference(attrs, codebases);
290 Reference ref, Attributes attrs, Object orig)
294 return attrs;
299 attrs.put(new BasicAttribute(JAVA_ATTRIBUTES[CLASSNAME], s));
303 attrs.put(new BasicAttribute(JAVA_ATTRIBUTES[FACTORY], s));
307 attrs.put(new BasicAttribute(JAVA_ATTRIBUTES[CODEBASE], s));
312 if (orig != null && attrs.get(JAVA_ATTRIBUTES[TYPENAME]) != null) {
316 attrs.put(tAttr);
345 attrs.put(refAttr);
347 return attrs;
372 private static Reference decodeReference(Attributes attrs,
379 if ((attr = attrs.get(JAVA_ATTRIBUTES[CLASSNAME])) != null) {
386 if ((attr = attrs.get(JAVA_ATTRIBUTES[FACTORY])) != null) {
400 if ((attr = attrs.get(JAVA_ATTRIBUTES[REF_ADDR])) != null) {
551 char separator, Object obj, Attributes attrs, boolean cloned,
555 // Call state factories to convert object and attrs
557 DirectoryManager.getStateToBind(obj, name, ctx, env, attrs);
559 attrs = res.getAttributes();
563 return attrs;
567 if ((attrs == null) && (obj instanceof DirContext)) {
569 attrs = ((DirContext)obj).getAttributes("");
576 if (attrs == null || attrs.size() == 0) {
577 attrs = new BasicAttributes(LdapClient.caseIgnore);
585 objectClass = (Attribute)attrs.get("objectClass");
586 if (objectClass == null && !attrs.isCaseIgnored()) {
588 objectClass = (Attribute)attrs.get("objectclass");
600 attrs = encodeObject(separator, obj, attrs, objectClass, cloned);
602 // System.err.println("Determined: " + attrs);
603 return attrs;