code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Override public void onClose(int closeCode, String message) { IKey key = getRegistryKey(); broadcastMessage(new ClosedMessage(getApplication(), getSessionId(), key)); connectionRegistry.removeConnection(getApplication(), getSessionId(), key); }
A helper that registers the opened connection in the application-level registry. @param connection the web socket connection to use to communicate with the client @see #onOpen(Object)
onClose
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
public final void broadcastMessage(final IWebSocketMessage message) { IKey key = getRegistryKey(); IWebSocketConnection connection = connectionRegistry.getConnection(application, sessionId, key); if (connection != null && (connection.isOpen() || isSpecialMessage(message))) { Application oldApplication = T...
Exports the Wicket thread locals and broadcasts the received message from the client to all interested components and behaviors in the page with id {@code #pageId} <p> Note: ConnectedMessage and ClosedMessage messages are notification-only. I.e. whatever the components/behaviors write in the WebSocketRequestHan...
broadcastMessage
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
private static boolean isSpecialMessage(IWebSocketMessage message) { return message instanceof ClosedMessage || message instanceof ErrorMessage || message instanceof AbortedMessage; }
Exports the Wicket thread locals and broadcasts the received message from the client to all interested components and behaviors in the page with id {@code #pageId} <p> Note: ConnectedMessage and ClosedMessage messages are notification-only. I.e. whatever the components/behaviors write in the WebSocketRequestHan...
isSpecialMessage
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
private RequestCycle createRequestCycle(WebSocketRequestMapper requestMapper, WebResponse webResponse) { RequestCycleContext context = new RequestCycleContext(webRequest, webResponse, requestMapper, application.getExceptionMapperProvider().get()); RequestCycle requestCycle = application.getRequestCycleProvide...
Exports the Wicket thread locals and broadcasts the received message from the client to all interested components and behaviors in the page with id {@code #pageId} <p> Note: ConnectedMessage and ClosedMessage messages are notification-only. I.e. whatever the components/behaviors write in the WebSocketRequestHan...
createRequestCycle
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
@Override public void onDetach(final RequestCycle requestCycle) { if (Session.exists()) { Session.get().getPageManager().commitRequest(); } }
Exports the Wicket thread locals and broadcasts the received message from the client to all interested components and behaviors in the page with id {@code #pageId} <p> Note: ConnectedMessage and ClosedMessage messages are notification-only. I.e. whatever the components/behaviors write in the WebSocketRequestHan...
onDetach
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
private Page getPage(IPageManager pageManager) { Page page; if (pageId != -1) { page = (Page) pageManager.getPage(pageId); } else { page = new WebSocketResourcePage(); } return page; }
@param pageManager the page manager to use when finding a page by id @return the page to use when creating WebSocketRequestHandler
getPage
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
protected final WebApplication getApplication() { return application; }
@param pageManager the page manager to use when finding a page by id @return the page to use when creating WebSocketRequestHandler
getApplication
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
protected final String getSessionId() { return sessionId; }
@param pageManager the page manager to use when finding a page by id @return the page to use when creating WebSocketRequestHandler
getSessionId
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
@SuppressWarnings("rawtypes") private WebSocketPayload createEventPayload(IWebSocketMessage message, WebSocketRequestHandler handler) { final WebSocketPayload payload; if (message instanceof TextMessage) { payload = new WebSocketTextPayload((TextMessage) message, handler); } else if (message instanceof B...
@param pageManager the page manager to use when finding a page by id @return the page to use when creating WebSocketRequestHandler
createEventPayload
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
protected IKey getRegistryKey() { IKey key; if (Strings.isEmpty(resourceName)) { key = new PageIdKey(pageId); } else { key = new ResourceNameKey(resourceName); } return key; }
@param pageManager the page manager to use when finding a page by id @return the page to use when creating WebSocketRequestHandler
getRegistryKey
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
@Override public IResourceStream getMarkupResourceStream(MarkupContainer container, Class<?> containerClass) { return new StringResourceStream(""); }
A dummy page that is used to create a new WebSocketRequestHandler for web socket connections to WebSocketResource
getMarkupResourceStream
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/AbstractWebSocketProcessor.java
MIT
@Override public String getServerName() { return serverName; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getServerName
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public int getServerPort() { return serverPort; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getServerPort
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public BufferedReader getReader() throws IOException { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getReader
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getRemoteAddr() { return remoteAddr; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getRemoteAddr
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getRemoteHost() { return remoteHost; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getRemoteHost
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public HttpSession getSession(boolean create) { return httpSession; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getSession
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getMethod() { return method; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getMethod
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getAuthType() { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getAuthType
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public Cookie[] getCookies() { return new Cookie[0]; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getCookies
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public long getDateHeader(String name) { return 0; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getDateHeader
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getHeader(String name) { Enumeration<String> values = headers.get(name); if (values != null && values.hasMoreElements()) { return values.nextElement(); } return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getHeader
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public Enumeration<String> getHeaders(final String name) { return headers.get(name); }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getHeaders
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public Enumeration<String> getParameterNames() { return Collections.enumeration(parameters.keySet()); }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getParameterNames
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getParameter(String name) { return parameters.get(name) != null ? parameters.get(name)[0] : null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getParameter
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String[] getParameterValues(final String name) { return parameters.get(name); }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getParameterValues
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public Map getParameterMap() { return parameters; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getParameterMap
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getProtocol() { String _protocol = "ws"; if ("https".equalsIgnoreCase(protocol)) { _protocol = "wss"; } return _protocol; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getProtocol
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getScheme() { String _scheme = "ws"; if ("https".equalsIgnoreCase(scheme)) { _scheme = "wss"; } return _scheme; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getScheme
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public Enumeration<String> getHeaderNames() { return Collections.enumeration(headers.keySet()); }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getHeaderNames
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public int getIntHeader(String name) { Enumeration<String> values = headers.get(name); int result = -1; if (values.hasMoreElements()) { String value = values.nextElement(); result = Integer.parseInt(value, 10); } return result; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getIntHeader
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public Object getAttribute(String name) { return attributes.get(name); }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getAttribute
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public Enumeration<String> getAttributeNames() { return Collections.enumeration(attributes.keySet()); }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getAttributeNames
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getCharacterEncoding() { return characterEncoding; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getCharacterEncoding
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public void setCharacterEncoding(String characterEncoding) throws UnsupportedEncodingException { this.characterEncoding = characterEncoding; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
setCharacterEncoding
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public int getContentLength() { return 0; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getContentLength
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getContentType() { return contentType; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getContentType
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public ServletInputStream getInputStream() throws IOException { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getInputStream
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public void setAttribute(String name, Object o) { attributes.put(name, o); }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
setAttribute
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public void removeAttribute(String name) { attributes.remove(name); }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
removeAttribute
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public Locale getLocale() { return locale; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getLocale
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@SuppressWarnings({ "rawtypes", "unchecked" }) @Override public Enumeration getLocales() { return locales; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getLocales
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public boolean isSecure() { return isSecure; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
isSecure
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public RequestDispatcher getRequestDispatcher(String path) { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getRequestDispatcher
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getRealPath(String path) { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getRealPath
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public int getRemotePort() { return remotePort; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getRemotePort
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getLocalName() { return localName; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getLocalName
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getLocalAddr() { return localAddr; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getLocalAddr
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public int getLocalPort() { return localPort; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getLocalPort
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public ServletContext getServletContext() { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getServletContext
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public AsyncContext startAsync() throws IllegalStateException { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
startAsync
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
startAsync
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public boolean isAsyncStarted() { return false; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
isAsyncStarted
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public boolean isAsyncSupported() { return false; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
isAsyncSupported
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public AsyncContext getAsyncContext() { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getAsyncContext
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public DispatcherType getDispatcherType() { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getDispatcherType
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getContextPath() { return contextPath; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getContextPath
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getQueryString() { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getQueryString
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getRemoteUser() { return remoteUser; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getRemoteUser
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public boolean isUserInRole(String role) { return false; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
isUserInRole
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public Principal getUserPrincipal() { return principal; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getUserPrincipal
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getRequestedSessionId() { return requestedSessionId; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getRequestedSessionId
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getServletPath() { return servletPath; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getServletPath
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getPathInfo() { return pathInfo; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getPathInfo
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getPathTranslated() { return pathTranslated; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getPathTranslated
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String getRequestURI() { return requestUri; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getRequestURI
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public HttpSession getSession() { return httpSession; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getSession
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public boolean isRequestedSessionIdValid() { return false; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
isRequestedSessionIdValid
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public boolean isRequestedSessionIdFromCookie() { return false; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
isRequestedSessionIdFromCookie
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public boolean isRequestedSessionIdFromURL() { return false; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
isRequestedSessionIdFromURL
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public boolean isRequestedSessionIdFromUrl() { return false; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
isRequestedSessionIdFromUrl
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public boolean authenticate(HttpServletResponse response) throws IOException, ServletException { return false; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
authenticate
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public void login(String username, String password) throws ServletException { }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
login
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public void logout() throws ServletException { }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
logout
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public Collection<Part> getParts() throws IOException, ServletException { return Collections.emptyList(); }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getParts
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public Part getPart(String name) throws IOException, ServletException { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getPart
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public StringBuffer getRequestURL() { return requestURL; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getRequestURL
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public long getContentLengthLong() { return 0; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
getContentLengthLong
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public String changeSessionId() { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
changeSessionId
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public <T extends HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, ServletException { return null; }
A copy of the http servlet request used to create the WebSocket. Copy its details because they are discarded at the end of the request (even if we use AsyncContext from Servlet 3 spec). This copy is used later for following requests through the WebSocket connection to construct WebSocketRequest. @since 6.0
upgrade
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/ServletRequestCopy.java
MIT
@Override public IWebSocketConnection getConnection(Application application, String sessionId, IKey key) { Args.notNull(application, "application"); Args.notNull(sessionId, "sessionId"); Args.notNull(key, "key"); IWebSocketConnection connection = null; ConcurrentMap<String, ConcurrentMap<IKey, IWebSocketCo...
A registry that keeps all currently opened web socket connections in maps in Application's meta data. @since 6.0
getConnection
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/SimpleWebSocketConnectionRegistry.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/SimpleWebSocketConnectionRegistry.java
MIT
@Override public Collection<IWebSocketConnection> getConnections(Application application, String sessionId) { Args.notNull(application, "application"); Args.notNull(sessionId, "sessionId"); Collection<IWebSocketConnection> connections = Collections.emptyList(); ConcurrentMap<String, ConcurrentMap<IKey, IWebS...
A registry that keeps all currently opened web socket connections in maps in Application's meta data. @since 6.0
getConnections
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/SimpleWebSocketConnectionRegistry.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/SimpleWebSocketConnectionRegistry.java
MIT
public Collection<IWebSocketConnection> getConnections(Application application) { Args.notNull(application, "application"); Collection<IWebSocketConnection> connections = new ArrayList<>(); ConcurrentMap<String, ConcurrentMap<IKey, IWebSocketConnection>> connectionsBySession = application.getMetaData(KEY); if...
Returns a collection of currently active websockets. The connections might close at any time. @param application The application @return a collection of currently active websockets
getConnections
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/SimpleWebSocketConnectionRegistry.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/SimpleWebSocketConnectionRegistry.java
MIT
@Override public void setConnection(Application application, String sessionId, IKey key, IWebSocketConnection connection) { Args.notNull(application, "application"); Args.notNull(sessionId, "sessionId"); Args.notNull(key, "key"); ConcurrentMap<String, ConcurrentMap<IKey, IWebSocketConnection>> connectionsByS...
Returns a collection of currently active websockets. The connections might close at any time. @param application The application @return a collection of currently active websockets
setConnection
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/SimpleWebSocketConnectionRegistry.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/SimpleWebSocketConnectionRegistry.java
MIT
@Override public void removeConnection(Application application, String sessionId, IKey key) { setConnection(application, sessionId, key, null); }
Returns a collection of currently active websockets. The connections might close at any time. @param application The application @return a collection of currently active websockets
removeConnection
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/SimpleWebSocketConnectionRegistry.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/protocol/ws/api/registry/SimpleWebSocketConnectionRegistry.java
MIT
public static RequestCycle get() { return ThreadContext.getRequestCycle(); }
Returns request cycle associated with current thread. @return request cycle instance or <code>null</code> if no request cycle is associated with current thread.
get
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
public Response getOriginalResponse() { return originalResponse; }
Get the original response the request was created with. Access to the original response may be necessary if the response has been temporarily replaced but the components require methods from original response (i.e. cookie methods of WebResponse, etc). @return The original response object.
getOriginalResponse
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
@Override public final UrlRenderer getUrlRenderer() { if (urlRenderer == null) { urlRenderer = newUrlRenderer(); } return urlRenderer; }
Returns {@link UrlRenderer} for this {@link RequestCycle}. @return UrlRenderer instance.
getUrlRenderer
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
protected IRequestHandler resolveRequestHandler() { return requestMapper.mapRequest(request); }
Resolves current request to a {@link IRequestHandler}. @return RequestHandler instance
resolveRequestHandler
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
protected int getExceptionRetryCount() { int retries = 10; if (Application.exists()) { retries = Application.get().getRequestCycleSettings().getExceptionRetryCount(); } return retries; }
@return How many times will Wicket attempt to render the exception request handler before giving up.
getExceptionRetryCount
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
public boolean processRequest() { try { set(this); listeners.onBeginRequest(this); onBeginRequest(); IRequestHandler handler = resolveRequestHandler(); if (handler != null) { execute(handler); return true; } // Did not find any suitable handler, thus not executing the request lo...
Processes the request. @return <code>true</code> if the request resolved to a Wicket request, <code>false</code> otherwise.
processRequest
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
private void execute(IRequestHandler handler) { Args.notNull(handler, "handler"); try { listeners.onRequestHandlerResolved(this, handler); requestHandlerExecutor.execute(handler); listeners.onRequestHandlerExecuted(this, handler); } catch (RuntimeException e) { IRequestHandler replacement = re...
Executes a request handler and fires pre/post listener methods @param handler
execute
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
public boolean processRequestAndDetach() { boolean result; try { result = processRequest(); } finally { detach(); } return result; }
Convenience method that processes the request and detaches the {@link RequestCycle}. @return <code>true</code> if the request resolved to a Wicket request, <code>false</code> otherwise.
processRequestAndDetach
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
protected IRequestHandler handleException(final Exception e) { IRequestHandler handler = listeners.onException(this, e); if (handler != null) { return handler; } return exceptionMapper.map(e); }
Return {@link IRequestHandler} for the given exception. @param e @return RequestHandler instance
handleException
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
public void setRequest(Request request) { // It would be mighty nice if request was final. However during multipart it needs to be set // to // MultipartServletWebRequest by Form. It can't be done before creating the request cycle // (in wicket filter) // because only the form knows max upload size this.re...
INTERNAL This method is for internal Wicket use. Do not call it yourself unless you know what you are doing. @param request
setRequest
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
public final <T> RequestCycle setMetaData(final MetaDataKey<T> key, final T object) { metaData = key.set(metaData, object); return this; }
Sets the metadata for this request cycle using the given key. If the metadata object is not of the correct type for the metadata key, an IllegalArgumentException will be thrown. For information on creating MetaDataKeys, see {@link MetaDataKey}. @param key The singleton key for the metadata @param object ...
setMetaData
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
public final <T> T getMetaData(final MetaDataKey<T> key) { return key.get(metaData); }
Gets metadata for this request cycle using the given key. @param <T> The type of the metadata @param key The key for the data @return The metadata or null if no metadata was found for the given key @see MetaDataKey
getMetaData
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
public final CharSequence urlFor(ResourceReference reference, PageParameters params) { ResourceUrlCacheKey key = new ResourceUrlCacheKey(reference, params); CharSequence url = resourceUrlCache.get(key); if (url == null) { ResourceReferenceRequestHandler handler = new ResourceReferenceRequestHandler( refe...
Returns a rendered {@link Url} for the resource reference @param reference resource reference @param params parameters for the resource or {@code null} if none @return {@link Url} for the reference
urlFor
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
public final <C extends Page> CharSequence urlFor(final Class<C> pageClass, final PageParameters parameters) { PageUrlCacheKey key = new PageUrlCacheKey(pageClass, parameters); CharSequence url = pageUrlCache.get(key); if (url == null) { IRequestHandler handler = new BookmarkablePageRequestHandler( new...
Returns a rendered bookmarkable URL that references a given page class using a given set of page parameters. Since the URL which is returned contains all information necessary to instantiate and render the page, it can be stored in a user's browser as a stable bookmark. @param <C> @param pageClass Class of...
urlFor
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT
public CharSequence urlFor(IRequestHandler handler) { try { Url mappedUrl = mapUrlFor(handler); CharSequence url = renderUrl(mappedUrl, handler); return url; } catch (Exception x) { throw new WicketRuntimeException(String.format( "An error occurred while generating an Url for handler '%s'", h...
Returns the rendered URL for the request handler or <code>null</code> if the handler couldn't have been rendered. <p> The resulting URL will be relative to current page. @param handler @return Url String or <code>null</code>
urlFor
java
theonedev/onedev
server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
https://github.com/theonedev/onedev/blob/master/server-core/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
MIT