Top Description Inners Fields Constructors Methods
org.springframework.web.socket.server.standard

public Class WebLogicRequestUpgradeStrategy

extends AbstractTyrusRequestUpgradeStrategy
Class Inheritance
Imports
java.io.IOException, java.lang.reflect.Constructor, .Method, jakarta.servlet.AsyncContext, .ServletContext, .ServletException, .ServletRequest, .ServletRequestWrapper, jakarta.servlet.http.HttpServletRequest, .HttpServletResponse, org.glassfish.tyrus.core.TyrusUpgradeResponse, .Utils, org.glassfish.tyrus.spi.Connection, .WebSocketEngine.UpgradeInfo, .Writer, org.springframework.beans.BeanWrapper, .BeanWrapperImpl, org.springframework.lang.Nullable, org.springframework.util.ReflectionUtils, org.springframework.web.socket.server.HandshakeFailureException

A WebSocket RequestUpgradeStrategy for Oracle's WebLogic. Supports 12.1.3 as well as 12.2.1, as of Spring Framework 4.2.3.
Authors
Rossen Stoyanchev, Juergen Hoeller
Since
4.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
WebLogicRequestUpgradeStrategy.TyrusMuxableWebSocketHelper

Helps to create and invoke weblogic.servlet.internal.MuxableSocketHTTP.

private static class
WebLogicRequestUpgradeStrategy.WebLogicServletWriterHelper

Helps to create and invoke weblogic.websocket.tyrus.TyrusServletWriter.

Field Summary

Modifier and TypeField and Description
private static final Connection.CloseListener
private static final WebLogicRequestUpgradeStrategy.WebLogicServletWriterHelper
private static final WebLogicRequestUpgradeStrategy.TyrusMuxableWebSocketHelper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Object
protected void
private static Method
method(String className, String method, Class<?>... paramTypes)

private static Class<?>
type(String className)

Inherited from org.springframework.web.socket.server.standard.AbstractTyrusRequestUpgradeStrategy:
getInstalledExtensionsgetSupportedVersionsupgradeInternal

Field Detail

noOpCloseListenerback to summary
private static final Connection.CloseListener noOpCloseListener
servletWriterHelperback to summary
private static final WebLogicRequestUpgradeStrategy.WebLogicServletWriterHelper servletWriterHelper
webSocketHelperback to summary
private static final WebLogicRequestUpgradeStrategy.TyrusMuxableWebSocketHelper webSocketHelper

Constructor Detail

WebLogicRequestUpgradeStrategyback to summary
public WebLogicRequestUpgradeStrategy()

Method Detail

getNativeRequestback to summary
private static Object getNativeRequest(ServletRequest request)
handleSuccessback to summary
protected void handleSuccess(HttpServletRequest request, HttpServletResponse response, WebSocketEngine.UpgradeInfo upgradeInfo, TyrusUpgradeResponse upgradeResponse) throws IOException, ServletException

Implements abstract org.springframework.web.socket.server.standard.AbstractTyrusRequestUpgradeStrategy.handleSuccess.

Annotations
@Override
methodback to summary
private static Method method(String className, String method, Class<?>... paramTypes) throws ClassNotFoundException, NoSuchMethodException
typeback to summary
private static Class<?> type(String className) throws ClassNotFoundException
org.springframework.web.socket.server.standard back to summary

private Class WebLogicRequestUpgradeStrategy.SubjectHelper

extends Object
Class Inheritance
  • java.lang.Object
  • org.springframework.web.socket.server.standard.WebLogicRequestUpgradeStrategy.SubjectHelper

Field Summary

Modifier and TypeField and Description
private final Method
private final Method
private final Method
private final Method

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

anonymousSubjectMethodback to summary
private final Method anonymousSubjectMethod
currentUserMethodback to summary
private final Method currentUserMethod
providerMethodback to summary
private final Method providerMethod
securityContextMethodback to summary
private final Method securityContextMethod

Constructor Detail

SubjectHelperback to summary
public SubjectHelper()

Method Detail

getSubjectback to summary
public Object getSubject(HttpServletRequest request)
org.springframework.web.socket.server.standard back to summary

private Class WebLogicRequestUpgradeStrategy.TyrusMuxableWebSocketHelper

extends Object
Class Inheritance
  • java.lang.Object
  • org.springframework.web.socket.server.standard.WebLogicRequestUpgradeStrategy.TyrusMuxableWebSocketHelper

Helps to create and invoke weblogic.servlet.internal.MuxableSocketHTTP.

Field Summary

Modifier and TypeField and Description
private static final Constructor<?>
private static final Method
private static final WebLogicRequestUpgradeStrategy.SubjectHelper
private static final Class<?>
private static final Method

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private Object
newInstance(HttpServletRequest request, Object httpSocket)

private void
private void
upgrade(Object webSocket, Object httpSocket, ServletContext servletContext)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constructorback to summary
private static final Constructor<?> constructor
readEventMethodback to summary
private static final Method readEventMethod
subjectHelperback to summary
private static final WebLogicRequestUpgradeStrategy.SubjectHelper subjectHelper
typeback to summary
private static final Class<?> type
upgradeMethodback to summary
private static final Method upgradeMethod

Constructor Detail

TyrusMuxableWebSocketHelperback to summary
private TyrusMuxableWebSocketHelper()

Method Detail

newInstanceback to summary
private Object newInstance(HttpServletRequest request, Object httpSocket)
registerForReadEventback to summary
private void registerForReadEvent(Object webSocket)
upgradeback to summary
private void upgrade(Object webSocket, Object httpSocket, ServletContext servletContext)
org.springframework.web.socket.server.standard back to summary

private Class WebLogicRequestUpgradeStrategy.WebLogicServletWriterHelper

extends Object
Class Inheritance
  • java.lang.Object
  • org.springframework.web.socket.server.standard.WebLogicRequestUpgradeStrategy.WebLogicServletWriterHelper

Helps to create and invoke weblogic.websocket.tyrus.TyrusServletWriter.

Field Summary

Modifier and TypeField and Description
private static final Constructor<?>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private Writer
newInstance(Object webSocket, boolean isProtected)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constructorback to summary
private static final Constructor<?> constructor

Constructor Detail

WebLogicServletWriterHelperback to summary
private WebLogicServletWriterHelper()

Method Detail

newInstanceback to summary
private Writer newInstance(Object webSocket, boolean isProtected)