All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.http.HttpServer.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3#com/groupbyinc/flux/http/HttpServerhLcom/groupbyinc/flux/common/component/AbstractLifecycleComponent;?com/groupbyinc/flux/common/component/AbstractLifecycleComponentHttpServer.java4com/groupbyinc/flux/http/HttpServer$PluginSiteFilterPluginSiteFilter.com/groupbyinc/flux/http/HttpServer$Dispatcher

Dispatcher+com/groupbyinc/flux/rest/RestRequest$Method
$com/groupbyinc/flux/rest/RestRequestMethodenvironment%Lcom/groupbyinc/flux/env/Environment;	transport.Lcom/groupbyinc/flux/http/HttpServerTransport;restController)Lcom/groupbyinc/flux/rest/RestController;nodeService.Lcom/groupbyinc/flux/node/service/NodeService;disableSitesZpluginSiteFilter6Lcom/groupbyinc/flux/http/HttpServer$PluginSiteFilter;DEFAULT_MIME_TYPESLjava/util/Map;5Ljava/util/Map;?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/Environment;Lcom/groupbyinc/flux/http/HttpServerTransport;Lcom/groupbyinc/flux/rest/RestController;Lcom/groupbyinc/flux/node/service/NodeService;)V*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)V!$
%((Lcom/groupbyinc/flux/http/HttpServer;)V!'
(	*	,	.	0	2,com/groupbyinc/flux/node/service/NodeService4
setHttpServer6'
57settings.Lcom/groupbyinc/flux/common/settings/Settings;9:	;http.disable_sites=java/lang/Boolean?valueOf(Z)Ljava/lang/Boolean;AB
@C,com/groupbyinc/flux/common/settings/SettingsEgetAsBoolean:(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean;GH
FIbooleanValue()ZKL
@M	O
(,com/groupbyinc/flux/http/HttpServerTransportRhttpServerAdapter/(Lcom/groupbyinc/flux/http/HttpServerAdapter;)VTUSVthis%Lcom/groupbyinc/flux/http/HttpServer;doStart()Vstart()Ljava/lang/Object;\]S^logger-Lcom/groupbyinc/flux/common/logging/ESLogger;`a	b+com/groupbyinc/flux/common/logging/ESLoggerd
isInfoEnabledfLeg{}ijava/lang/ObjectkboundAddress>()Lcom/groupbyinc/flux/common/transport/BoundTransportAddress;mnSoinfo((Ljava/lang/String;[Ljava/lang/Object;)Vqreshttp_addressu:com/groupbyinc/flux/common/transport/BoundTransportAddresswpublishAddress9()Lcom/groupbyinc/flux/common/transport/TransportAddress;yz
x{5com/groupbyinc/flux/common/transport/TransportAddress}toString()Ljava/lang/String;?~?putAttribute'(Ljava/lang/String;Ljava/lang/String;)V??
5?doStopremoveAttribute(Ljava/lang/String;)V??
5?stop?]S?doCloseclose?[S?%()Lcom/groupbyinc/flux/http/HttpInfo;q?S?stats&()Lcom/groupbyinc/flux/http/HttpStats;??S?internalDispatchRequestO(Lcom/groupbyinc/flux/http/HttpRequest;Lcom/groupbyinc/flux/http/HttpChannel;)V$com/groupbyinc/flux/http/HttpRequest?rawPath??
??	/_plugin/?java/lang/String?
startsWith(Ljava/lang/String;)Z??
??'com/groupbyinc/flux/rest/RestController?filterChainQ(Lcom/groupbyinc/flux/rest/RestFilter;)Lcom/groupbyinc/flux/rest/RestFilterChain;??
??(com/groupbyinc/flux/rest/RestFilterChain?continueProcessingO(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/rest/RestChannel;)V????/favicon.ico?equals(Ljava/lang/Object;)Z??
??
handleFavicon??
?dispatchRequest??
??*Lcom/groupbyinc/flux/rest/RestFilterChain;request&Lcom/groupbyinc/flux/http/HttpRequest;channel&Lcom/groupbyinc/flux/http/HttpChannel;Ljava/lang/String;java/lang/Throwable?java/io/IOException?method/()Lcom/groupbyinc/flux/rest/RestRequest$Method;??
??GET-Lcom/groupbyinc/flux/rest/RestRequest$Method;??	?getClass()Ljava/lang/Class;??
l?/config/favicon.ico?java/lang/Class?getResourceAsStream)(Ljava/lang/String;)Ljava/io/InputStream;??
??7com/groupbyinc/flux/common/google/common/io/ByteStreams?toByteArray(Ljava/io/InputStream;)[B??
??*com/groupbyinc/flux/rest/BytesRestResponse?#com/groupbyinc/flux/rest/RestStatus?OK%Lcom/groupbyinc/flux/rest/RestStatus;??	??image/x-icon?<(Lcom/groupbyinc/flux/rest/RestStatus;Ljava/lang/String;[B)V!?
??$com/groupbyinc/flux/http/HttpChannel?sendResponse*(Lcom/groupbyinc/flux/rest/RestResponse;)V??
??java/io/InputStream?
??
addSuppressed(Ljava/lang/Throwable;)V??
??INTERNAL_SERVER_ERROR??	?((Lcom/groupbyinc/flux/rest/RestStatus;)V!
?	FORBIDDEN?	?content[BrestResponse,Lcom/groupbyinc/flux/rest/BytesRestResponse;streamLjava/io/InputStream;eLjava/io/IOException;handlePluginSiteOPTIONS?	length()I
?	substring(I)Ljava/lang/String;
?indexOf(I)I
?java/lang/StringBuilder ![
!"append-(Ljava/lang/String;)Ljava/lang/StringBuilder;$%
!&/(
!?MOVED_PERMANENTLY+?	?,	text/html.12L(Lcom/groupbyinc/flux/rest/RestStatus;Ljava/lang/String;Ljava/lang/String;)V!4
?5Location7	addHeader9?
?:(II)Ljava/lang/String;<
?=
index.html?charAt(I)CAB
?C#com/groupbyinc/flux/env/EnvironmentEpluginsFile()Ljava/nio/file/Path;GH
FIjava/nio/file/PathKresolve((Ljava/lang/String;)Ljava/nio/file/Path;MNLO_siteQ
getFileSystem()Ljava/nio/file/FileSystem;STLUjava/nio/file/FileSystemWgetSeparatorY?
XZreplaceD(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;\]
?^java/nio/file/LinkOption`java/nio/file/Filesbexists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Zde
cf-com/groupbyinc/flux/common/io/FileSystemUtilshisHidden(Ljava/nio/file/Path;)Zjk
iltoAbsolutePathnHLo	normalizeqHLr?kLt	NOT_FOUNDv?	?w+java/nio/file/attribute/BasicFileAttributesyreadAttributeso(Ljava/nio/file/Path;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/BasicFileAttributes;{|
c}
isRegularFileLz?isDirectory?Lz?e
c?readAllBytes(Ljava/nio/file/Path;)[B??
c?
guessMimeType&(Ljava/lang/String;)Ljava/lang/String;??
?redirectUrl
pluginNamesitePathdatapathi1IsiteFileLjava/nio/file/Path;	separatorfile
attributes-Ljava/nio/file/attribute/BasicFileAttributes;lastIndexOf?
???java/util/Locale?ROOTLjava/util/Locale;??	??toLowerCase&(Ljava/util/Locale;)Ljava/lang/String;??
??	?
java/util/Map?get&(Ljava/lang/Object;)Ljava/lang/Object;????lastDot	extensionmimeTypejava/util/HashMap?
?"txt?
text/plain?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;????css?text/css?csv?text/csv?htm?html?xml?text/xml?js?text/javascript?xhtml?application/xhtml+xml?json?application/json?pdf?application/pdf?zip?application/zip?tar?application/x-tar?gif?	image/gif?jpeg?
image/jpeg?jpg?tiff?
image/tiff?tif?png?	image/png?svg?
image/svg+xmlicoimage/vnd.microsoft.iconmp3
audio/mpeg=com/groupbyinc/flux/common/google/common/collect/ImmutableMap
copyOfP(Ljava/util/Map;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;
	mimeTypes	SignatureCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotations
StackMapTable
ExceptionsLocalVariableTypeTable
SourceFileInnerClasses! !"?P*+?&*?Y*?)?+*,?-*-?/*?1*?3*?8**?<>?D?J?N?P-?Y*?Q?W?>PXYP9:PPPP*
@:ABC!D'E-GAIOJ#Z[?L*?/?_W*?c?h?*?cj?lY*?/?pS?t*?3v*?/?p?|?????LXY\
]^1`Ka1?[F*?3v??*?/??W?XYe	fg?[8
*?/???
XY
k	lq?4
*?/???
XYo??4
*?/???
XYs????+??N-????*?1*?+??:+,???-????
*+,???*?1+,???4
???XY??????:??*
wxyz${%|.}4~5?>?	?%????	?+?βҦ?*??ض?N:-??:??Y?????:,??-?P?-???D:???8-???1::?:-??-???:???-????#N,??Y?????,??Y?????<@C?3V?3_jnq?Va_
???H	-
p
??XY??????:?
???-?3?V?_?????????????Z?C?????F?H???????????B?
??*?P?,??Y?????+?β?,??Y?????+?βҥ,??Y?????+?????N-/?6?]-::?!Y?#+???')?'?*:??Y?-/?!Y?#1?'?'3?'?*?6:8?;,???-?>:-`?:??@:?!???D/??:???*?-?J?PR?P:?V?[:)?_:?P:		?a?g?+	?m?#	?p?s?p?s?u?,??Y?x????	z?a?~:

???W
???,??Y?????	@?P:		?a?g?	?m?	?a???,??Y?????	??:,??Y??*??????:,??Y?????????;???
fW??iT????	
XY????U???]????S???I????"???9???	????
?/???? ?.?/?9?G?H?U?]?c?f?i????????????????????????"?.?9?m?{?|???????????????????????
??0
?t??"???nL?L?0z+_?????8+.??=???+`?????N??-????:????48XY8??1????,??"?????,?1?5???$???[?!??Y??K*????W*?Ź?W*?ɹ?W*?/??W*?/??W*?ѹ?W*?չ?W*?ٹ?W*?ݹ?W*???W*???W*???W*????W*???W*???W*????W*????W*????W*???W*??W*	??W*???? b??"/<IVcp}?	?
???
????? 	@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy