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

12

/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/spi/container/
H A DSFSBContainerCallback.java56 StatefulEJBContext ctx, Object cookie);
55 activateEJB(Object sessionKey, StatefulEJBContext ctx, Object cookie) argument
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/
H A DHttpResponse.java108 * Special method for adding a session cookie as we should be overriding
110 * @param cookie
112 public void addSessionCookieInternal(final Cookie cookie); argument
H A DHttpRequest.java86 * @param cookie The new cookie
88 public void addCookie(Cookie cookie); argument
191 * request came in through a cookie. This is normally called by the
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/
H A DRequestUtil.java84 * Encode a cookie as per RFC 2109. The resulting string can be used
87 * @param cookie The cookie to encode.
90 public static String encodeCookie(Cookie cookie) { argument
92 StringBuilder buf = new StringBuilder( cookie.getName() );
94 buf.append(cookie.getValue());
96 if (cookie.getComment() != null) {
98 buf.append(cookie.getComment());
102 if (cookie.getDomain() != null) {
104 buf.append(cookie
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/connector/
H A DOutputBuffer.java690 * Adds a session version cookie to the response if necessary.
697 Cookie cookie = new Cookie(
700 request.configureSessionCookie(cookie);
703 * Have the JSESSIONIDVERSION cookie inherit the
704 * security setting of the JSESSIONID cookie to avoid
708 cookie.setSecure(
712 coyoteResponse.getCookieString(cookie));
717 * Adds JSESSIONID cookie whose value includes jvmRoute if necessary.
726 // Create JSESSIONID cookie that includes jvmRoute
727 Cookie cookie
[all...]
H A DResponse.java1024 * @param cookie Cookie to be added
1026 public void addCookie(final Cookie cookie) { argument
1041 (sb, cookie.getVersion(), cookie.getName(),
1042 cookie.getValue(), cookie.getPath(),
1043 cookie.getDomain(), cookie.getComment(),
1044 cookie.getMaxAge(), cookie
1075 addSessionCookieInternal(final Cookie cookie) argument
1859 getCookieString(final Cookie cookie) argument
[all...]
H A DRequest.java300 * Was the requested session ID received in a cookie?
315 // The requested session cookie path, see IT 7426
2005 * @param cookie The new cookie
2008 public void addCookie(Cookie cookie) { argument
2015 cookies.add(cookie);
2126 * request came in through a cookie. This is normally called by the
2136 * Sets the requested session cookie path, see IT 7426
2146 * This method, which is called when the session id is sent as a cookie,
2601 * request came from a cookie
2980 configureSessionCookie(Cookie cookie) argument
[all...]
H A DResponseFacade.java404 public void addCookie(Cookie cookie) { argument
415 response.addCookie(cookie);
/glassfish-3.1.2/admin/rest/src/test/java/org/glassfish/admin/rest/
H A DTokenAuthenticationTest.java70 ClientResponse response = client.resource(getAddress("/domain")).cookie(new Cookie(GF_REST_TOKEN_COOKIE_NAME, token)).get(ClientResponse.class);
74 response = client.resource(getAddress(URL_DOMAIN_SESSIONS) + "/" + token).cookie(new Cookie(GF_REST_TOKEN_COOKIE_NAME, token)).delete(ClientResponse.class);
109 // Build this request manually so we can pass the cookie
110 response = client.resource(getAddress("/domain")).cookie(new Cookie(GF_REST_TOKEN_COOKIE_NAME, token)).get(ClientResponse.class);
113 // Request again w/o the cookie. This should fail.
136 .cookie(new Cookie(GF_REST_TOKEN_COOKIE_NAME, token))
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/authenticator/
H A DSingleSignOn.java131 * keyed by the cookie value that is used to select them.
350 // Check for the single sign on cookie
352 log(" Checking for SSO cookie");
353 Cookie cookie = null;
359 cookie = cookies[i];
363 if (cookie == null) {
365 log(" SSO cookie is not present");
369 // Look up the cached Principal associated with this cookie value
371 log(" Checking for cached principal for " + cookie.getValue());
372 SingleSignOnEntry entry = lookup(cookie
[all...]
H A DSavedRequest.java95 public void addCookie(Cookie cookie) { argument
96 cookies.add(cookie);
H A DAuthenticatorBase.java685 * Generate and return a new session identifier for the cookie that
809 * SingleSignOn valve, if there is one. Set the appropriate cookie
854 // Construct a cookie to be returned to the client
870 Cookie cookie = new Cookie(Constants.SINGLE_SIGN_ON_COOKIE, value);
871 cookie.setMaxAge(-1);
872 cookie.setPath("/");
875 host.configureSingleSignOnCookieSecure(cookie, hreq);
876 host.configureSingleSignOnCookieHttpOnly(cookie);
878 cookie.setSecure(hreq.isSecure());
880 hres.addCookie(cookie);
[all...]
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/security/web/
H A DGlassFishSingleSignOn.java318 // Check for the single sign on cookie
321 logger.fine(" Checking for SSO cookie");
327 Cookie cookie = null;
330 cookie = cookies[i];
334 if (cookie == null) {
337 logger.fine(" SSO cookie is not present");
387 // Look up the cached Principal associated with this cookie value
391 + cookie.getValue());
393 SingleSignOnEntry entry = lookup(cookie.getValue());
405 request.setNote(Constants.REQ_SSOID_NOTE, cookie
[all...]
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/web/pwc/connector/coyote/
H A DPwcCoyoteRequest.java139 * Configures the given JSESSIONID cookie with the cookie-properties from
142 * @param cookie The JSESSIONID cookie to be configured
144 public void configureSessionCookie(Cookie cookie) { argument
146 super.configureSessionCookie(cookie);
152 cookie.setSecure(true);
154 cookie.setSecure(false);
156 cookie.setSecure(isSecure());
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/session/
H A DCookiePersistentManager.java50 * Session manager for cookie-based persistence, where cookies carry session state.
52 * With cookie-based persistence, only session attribute values of type String are supported.
94 for (Cookie cookie : cookies) {
95 if (cookieName.equals(cookie.getName())) {
96 return parseSession(cookie.getValue(), request.getRequestedSessionId());
/glassfish-3.1.2/web/web-ha/src/main/java/org/glassfish/web/ha/session/management/
H A DHASessionStoreValve.java112 for (Cookie cookie: cookies) {
113 if (cookie.getName().equalsIgnoreCase(Globals.JREPLICA_COOKIE_NAME)) {
114 oldJreplicaValue = cookie.getValue();
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/adapter/
H A DRestAdapter.java213 for (Cookie cookie : cookies) {
214 if ("gfresttoken".equals(cookie.getName())) {
215 restToken = cookie.getValue();
236 for (Cookie cookie : cookies) {
237 if (cookie.getName().equals("gfrestuid")) {
238 if (cookie.getValue().equals(uid)) {
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/core/
H A DApplicationHttpResponse.java224 * @param cookie The new cookie
226 public void addCookie(Cookie cookie) { argument
229 ((HttpServletResponse) getResponse()).addCookie(cookie);
H A DDummyResponse.java143 public void addSessionCookieInternal(final Cookie cookie) {} argument
147 public void addCookie(Cookie cookie) {} argument
H A DStandardHost.java906 * Configures the Secure attribute of the given SSO cookie.
908 * @param cookie the SSO cookie to be configured
911 public void configureSingleSignOnCookieSecure(Cookie cookie, argument
913 cookie.setSecure(hreq.isSecure());
918 * Configures the HttpOnly attribute of the given SSO cookie.
920 * @param cookie the SSO ccokie to be configured
922 public void configureSingleSignOnCookieHttpOnly(Cookie cookie) { argument
/glassfish-3.1.2/security/webintegration/src/main/java/com/sun/web/security/
H A DHttpResponseWrapper.java85 public void addSessionCookieInternal(final Cookie cookie) { argument
86 httpResponse.addSessionCookieInternal(cookie);
H A DHttpRequestWrapper.java78 public void addCookie(Cookie cookie) { argument
79 httpRequest.addCookie(cookie);
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/appserv/web/cache/filter/
H A DCachingResponseWrapper.java199 * The default behavior of this method is to call addCookie(Cookie cookie)
202 public void addCookie(Cookie cookie) { argument
203 super.addCookie(cookie);
206 cookies.add(cookie);
/glassfish-3.1.2/admingui/common/src/main/java/org/glassfish/admingui/common/util/
H A DRestUtil.java722 .cookie(new Cookie(REST_TOKEN_COOKIE, token))
733 .cookie(new Cookie(REST_TOKEN_COOKIE, token))
756 .cookie(new Cookie(REST_TOKEN_COOKIE, getRestToken()))
770 .cookie(new Cookie(REST_TOKEN_COOKIE, getRestToken()))
781 .cookie(new Cookie(REST_TOKEN_COOKIE, getRestToken()))
792 .cookie(new Cookie(REST_TOKEN_COOKIE, getRestToken()))
802 .cookie(new Cookie(REST_TOKEN_COOKIE, getRestToken()))
811 .cookie(new Cookie(REST_TOKEN_COOKIE, getRestToken()))
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/web/accesslog/
H A DDefaultAccessLogFormatterImpl.java93 private static final String COOKIE = "cookie";
95 private static final String COOKIE_VALUE = "cookie.value";
96 private static final String COOKIE_BY_NAME_PREFIX = "cookie.";
736 * Appends the name and value (separated by '=') of the first cookie
742 String cookie = "NULL-COOKIE";
745 cookie = cookies[0].getName() + "=" + cookies[0].getValue();
747 cb.put(cookie);
773 * Appends the value of the first cookie in the given request to the
789 * Appends the value of the first cookie with the given cookie nam
[all...]

Completed in 52 milliseconds

12