Searched refs:cookie (Results 1 - 25 of 68) sorted by relevance

123

/openjdk7/jdk/src/share/classes/java/net/
H A DCookiePolicy.java43 public boolean shouldAccept(URI uri, HttpCookie cookie) {
52 public boolean shouldAccept(URI uri, HttpCookie cookie) {
61 public boolean shouldAccept(URI uri, HttpCookie cookie) {
62 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost());
68 * Will be called to see whether or not this cookie should be accepted.
71 * @param cookie the HttpCookie object in question
72 * @return <tt>true</tt> if this cookie should be accepted;
75 public boolean shouldAccept(URI uri, HttpCookie cookie); argument
H A DCookieStore.java32 * A CookieStore object represents a storage for cookie. Can store and retrieve
37 * retrieve cookie for every outgoing HTTP request. A CookieStore
45 * Adds one HTTP cookie to the store. This is called for every
48 * <p>A cookie to store may or may not be associated with an URI. If it
49 * is not associated with an URI, the cookie's domain and path attribute
52 * where this cookie comes from.
54 * <p>If a cookie corresponding to the given URI already exists,
57 * @param uri the uri this cookie associated with.
58 * if <tt>null</tt>, this cookie will not be associated
60 * @param cookie th
67 add(URI uri, HttpCookie cookie) argument
118 remove(URI uri, HttpCookie cookie) argument
[all...]
H A DCookieManager.java40 * policy decisions on cookie acceptance/rejection.
42 * <p> The HTTP cookie management in java.net package looks like:
64 * CookieHandler is at the core of cookie management. User can call
70 * or not one cookie should be accepted and put into cookie store. User can use
76 * CookieStore is the place where any accepted HTTP cookie is stored in.
89 * <p>There're various ways user can hook up his own HTTP cookie management behavior, e.g.
130 * Create a new cookie manager.
132 * <p>This constructor will create new cookie manager with default
133 * cookie stor
355 shouldAcceptInternal(URI uri, HttpCookie cookie) argument
[all...]
H A DHttpCookie.java42 * An HttpCookie object represents an http cookie, which carries state
46 * <p>There are 3 http cookie specifications:
64 // The value of the cookie itself.
71 // Attributes encoded in the header's cookie fields.
74 private String comment; // Comment=VALUE ... describes cookie's use
75 private String commentURL; // CommentURL="http URL" ... describes cookie's use
76 private boolean toDiscard; // Discard ... discard cookie unconditionally
77 private String domain; // Domain=VALUE ... domain that sees cookie
79 private String path; // Path=VALUE ... URLs that see the cookie
80 private String portlist; // Port[="portlist"] ... the port cookie ma
983 assign(HttpCookie cookie, String attrName, String attrValue) argument
1056 assignAttribute(HttpCookie cookie, String attrName, String attrValue) argument
[all...]
H A DInMemoryCookieStore.java51 // CAUTION: when a cookie removed from main data structure (i.e. cookieJar),
53 // presence of cookie when retrieve one form index store.
73 * Add one cookie into cookie store.
75 public void add(URI uri, HttpCookie cookie) { argument
77 if (cookie == null) {
78 throw new NullPointerException("cookie is null");
84 // remove the ole cookie if there has had one
85 cookieJar.remove(cookie);
87 // add new cookie i
356 addIndex(Map<T, List<HttpCookie>> indexStore, T index, HttpCookie cookie) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/naming/ldap/
H A DPagedResultsControl.java46 * byte[] cookie = null;
76 * cookie = prrc.getCookie();
85 * new PagedResultsControl(pageSize, cookie, Control.CRITICAL) });
86 * } while (cookie != null);
104 * cookie OCTET STRING
147 * page of results. The cookie is provided by the server and may be
151 * to zero and setting the cookie to the last cookie received from the
155 * @param cookie A possibly null server-generated cookie
164 PagedResultsControl(int pageSize, byte[] cookie, boolean criticality) argument
185 setEncodedValue(int pageSize, byte[] cookie) argument
[all...]
H A DPagedResultsResponseControl.java35 * and an opaque cookie. The cookie must be supplied to the next search
52 * cookie OCTET STRING
79 * A server-generated cookie.
83 private byte[] cookie; field in class:PagedResultsResponseControl
106 cookie = ber.parseOctetString(Ber.ASN_OCTET_STR, null);
119 * Retrieves the server-generated cookie. Null is returned when there are
122 * @return A possibly null server-generated cookie. It is not cloned - any
123 * changes to the cookie will update the control's state and thus
127 if (cookie
[all...]
/openjdk7/jdk/test/java/net/CookieHandler/
H A DTestHttpCookie.java63 HttpCookie cookie = cookies.get(index);
64 if (cookie == null || !n.equalsIgnoreCase(cookie.getName())) {
65 raiseError("name", cookie.getName(), n);
74 HttpCookie cookie = cookies.get(index);
75 if (cookie == null || !v.equals(cookie.getValue())) {
76 raiseError("value", cookie.getValue(), v);
85 HttpCookie cookie = cookies.get(index);
86 if (cookie
[all...]
H A DNullUriCookieTest.java45 //get a cookie store implementation and add a cookie to the store with null URI
47 HttpCookie cookie = new HttpCookie("MY_COOKIE", "MY_COOKIE_VALUE");
48 cookie.setDomain("foo.com");
49 cookieStore.add(null, cookie);
51 //Retrieve added cookie
59 checkFail("Abnormal size of cookie jar");
62 if (!chip.equals(cookie)) {
67 boolean ret = cookieStore.remove(null,cookie);
/openjdk7/jdk/src/share/classes/sun/misc/
H A DJavaNetHttpCookieAccess.java34 * retaining the original header String in the cookie itself.
39 * Returns the original header this cookie was consructed from, if it was
42 public String header(HttpCookie cookie); argument
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/jxc/gen/config/
H A DNGCCHandler.java79 * @param cookie
80 * The cookie value passed to the child object
88 protected abstract void onChildCompleted( Object result, int cookie, boolean needAttCheck ) throws SAXException; argument
131 public void revertToParentFromEnterElement( Object result, int cookie, argument
135 _parent.onChildCompleted(result,cookie,true);
138 public void revertToParentFromLeaveElement( Object result, int cookie, argument
148 _parent.onChildCompleted(result,cookie,true);
151 public void revertToParentFromEnterAttribute( Object result, int cookie, argument
155 _parent.onChildCompleted(result,cookie,true);
158 public void revertToParentFromLeaveAttribute( Object result, int cookie, argument
165 revertToParentFromText( Object result, int cookie, String text ) argument
[all...]
H A DClasses.java51 public Classes(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) { argument
52 super(source, parent, cookie);
319 public void onChildCompleted(Object result, int cookie, boolean needAttCheck)throws SAXException { argument
320 switch(cookie) {
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/parser/state/
H A DNGCCHandler.java79 * @param cookie
80 * The cookie value passed to the child object
88 protected abstract void onChildCompleted( Object result, int cookie, boolean needAttCheck ) throws SAXException; argument
131 public void revertToParentFromEnterElement( Object result, int cookie, argument
135 _parent.onChildCompleted(result,cookie,true);
138 public void revertToParentFromLeaveElement( Object result, int cookie, argument
148 _parent.onChildCompleted(result,cookie,true);
151 public void revertToParentFromEnterAttribute( Object result, int cookie, argument
155 _parent.onChildCompleted(result,cookie,true);
158 public void revertToParentFromLeaveAttribute( Object result, int cookie, argument
165 revertToParentFromText( Object result, int cookie, String text ) argument
[all...]
/openjdk7/hotspot/agent/src/os/solaris/proc/
H A Dsaproc_audit.cpp51 la_objopen(Link_map * lmp, Lmid_t lmid, uintptr_t * cookie) argument
54 libproc_cookie = cookie;
58 libc_cookie = cookie;
62 libsaproc_cookie = cookie;
/openjdk7/jdk/test/sun/net/www/protocol/http/
H A DUserCookie.java92 List<String> cookie = reqHeaders.get("Cookie");
94 if (cookie == null || !cookie.get(0).equals("value=ValueDoesNotMatter"))
H A DHttpOnly.java50 * 2) populate cookie store with HttpOnly cookies
53 * 5) server reply with Set-Cookie containing HttpOnly cookie
99 // TEST 1: check getRequestProperty doesn't return the HttpOnly cookie
101 String cookie = uc.getRequestProperty("Cookie");
102 check(cookie == null,
103 "Cookie header returned from getRequestProperty, value " + cookie);
105 // TEST 2: check getRequestProperties doesn't return the HttpOnly cookie.
165 // TEST 5: check getRequestProperty doesn't return the HttpOnly cookie
166 cookie = uc.getRequestProperty("Cookie");
167 check(!cookie
[all...]
/openjdk7/hotspot/src/os/solaris/vm/
H A Dos_solaris.hpp82 typedef int (*lgrp_fini_func_t)(lgrp_cookie_t cookie);
83 typedef lgrp_id_t (*lgrp_root_func_t)(lgrp_cookie_t cookie);
84 typedef int (*lgrp_children_func_t)(lgrp_cookie_t cookie, lgrp_id_t parent,
86 typedef int (*lgrp_resources_func_t)(lgrp_cookie_t cookie, lgrp_id_t lgrp,
89 typedef int (*lgrp_nlgrps_func_t)(lgrp_cookie_t cookie);
90 typedef int (*lgrp_cookie_stale_func_t)(lgrp_cookie_t cookie);
279 static void set_lgrp_cookie(lgrp_cookie_t cookie) { _lgrp_cookie = cookie; } argument
283 static int lgrp_fini(lgrp_cookie_t cookie) { return _lgrp_fini != NULL ? _lgrp_fini(cookie) argument
284 lgrp_root(lgrp_cookie_t cookie) argument
285 lgrp_children(lgrp_cookie_t cookie, lgrp_id_t parent, lgrp_id_t *lgrp_array, uint_t lgrp_array_size) argument
289 lgrp_resources(lgrp_cookie_t cookie, lgrp_id_t lgrp, lgrp_id_t *lgrp_array, uint_t lgrp_array_size, lgrp_rsrc_t type) argument
295 lgrp_nlgrps(lgrp_cookie_t cookie) argument
296 lgrp_cookie_stale(lgrp_cookie_t cookie) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jmx/mbeanserver/
H A DPerInterface.java69 Object getAttribute(Object resource, String attribute, Object cookie) argument
83 return introspector.invokeM(cm, resource, (Object[]) null, cookie);
87 Object cookie)
102 introspector.invokeSetter(attribute, cm, resource, value, cookie);
106 String[] signature, Object cookie)
113 cookie);
136 cookie);
138 return introspector.invokeM(found.method, resource, params, cookie);
164 Object cookie)
211 return introspector.invokeM(method, resource, params, cookie);
86 setAttribute(Object resource, String attribute, Object value, Object cookie) argument
105 invoke(Object resource, String operation, Object[] params, String[] signature, Object cookie) argument
162 noSuchMethod(String msg, Object resource, String operation, Object[] params, String[] signature, Object cookie) argument
[all...]
H A DMBeanIntrospector.java130 * @param cookie Additional information about the target. For an
134 * It would be cleaner if the type of the cookie were a
138 abstract Object invokeM2(M m, Object target, Object[] args, Object cookie) argument
147 Object cookie);
231 * Invoke the given M on the given target with the given args and cookie.
234 final Object invokeM(M m, Object target, Object[] args, Object cookie) argument
237 return invokeM2(m, target, args, cookie);
252 * and cookie. Wrap exceptions appropriately.
263 Object cookie)
267 invokeM2(setter, target, new Object[] {arg}, cookie);
146 validParameter(M m, Object value, int paramNo, Object cookie) argument
262 invokeSetter(String name, M setter, Object target, Object arg, Object cookie) argument
279 maybeInvalidParameter(String name, M setter, Object arg, Object cookie) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/logging/
H A DHttpLogFormatter.java99 String cookie = s2.substring(i + 1, j > 0 ? j - 1 : s2.length() - 1);
100 buf.append("\t").append(cookie).append("\n");
118 String cookie = s2.substring(i+1, j > 0 ? j-1 : s2.length() - 1);
119 buf.append("\t").append(cookie).append("\n");
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/legacy/connection/
H A DSocketFactoryContactInfoImpl.java63 SocketInfo cookie)
74 .getEndPointInfo(orb, effectiveTargetIOR, cookie);
58 SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) argument
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/
H A DExportAction.java93 ExportCookie cookie = Utilities.actionsGlobalContext().lookup(ExportCookie.class);
94 if (cookie != null) {
95 cookie.export(file);
/openjdk7/jaxp/src/org/w3c/dom/html/
H A DHTMLDocument.java136 public void setCookie(String cookie); argument
/openjdk7/jdk/src/solaris/native/sun/awt/
H A Dawt_mgrsel.c44 void *cookie; member in struct:AwtMgrsel
108 void *cookie,
172 mgrsel->cookie = cookie;
326 (*mgrsel->callback_owner)(scr, owner, data, mgrsel->cookie);
363 (*mgrsel->callback_owner)(scr, None, NULL, mgrsel->cookie);
410 (*mgrsel->callback_event)(scr, ev, mgrsel->cookie);
107 awt_mgrsel_select(const char *selname, long extra_mask, void *cookie, void (*callback_event)(int, XEvent *, void *), void (*callback_owner)(int, Window, long *, void *)) argument
/openjdk7/hotspot/src/share/tools/hsdis/
H A Dhsdis-demo.c126 static void* handle_event(void* cookie, const char* event, void* arg) { argument
128 if (cookie != event_cookie)
129 printf("*** bad event cookie %p != %p\n", cookie, event_cookie);

Completed in 182 milliseconds

123